forked from Shopify/cli-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
53 lines (40 loc) · 1013 Bytes
/
.rubocop.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
inherit_gem:
rubocop-shopify: rubocop-cli.yml
inherit_from:
- .rubocop.sorbet.yml
require:
- rubocop-sorbet
AllCops:
Exclude:
- gen/template/**/*
- vendor/**/*
TargetRubyVersion: 2.7
NewCops: disable
Style/ClassAndModuleChildren:
Exclude:
- lib/cli/kit/support/test_helper.rb
Style/FrozenStringLiteralComment:
Enabled: false
# This doesn't take into account retrying from an exception
Lint/SuppressedException:
Enabled: false
# allow String.new to create mutable strings
Style/EmptyLiteral:
Enabled: false
# allow the use of globals which makes sense in a CLI app like this
Style/GlobalVars:
Enabled: false
# allow using %r{} for regexes
Style/RegexpLiteral:
Enabled: false
# allow readable Dev::Util.begin formatting
Style/MultilineBlockChain:
Enabled: false
Style/StringLiterals:
EnforcedStyle: single_quotes
# We heavily manage output on purpose
Style/GlobalStdStream:
Enabled: false
# Sometimes (often) explicit is good
Style/EmptyElse:
Enabled: false