forked from Shopify/shopify-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
102 lines (89 loc) · 2.49 KB
/
.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
inherit_from: .rubocop_todo.yml
require:
- rubocop-minitest
- rubocop-rake
inherit_gem:
rubocop-shopify:
- rubocop-cli.yml
Minitest:
Enabled: true
Include:
- "**/test/**/*"
- "**/*_test.rb"
Minitest/AssertInDelta: # (new in 0.10)
Enabled: true
Minitest/AssertionInLifecycleHook: # (new in 0.10)
Enabled: true
Minitest/AssertKindOf: # (new in 0.10)
Enabled: true
Minitest/AssertOutput: # (new in 0.10)
Enabled: true
Minitest/AssertPathExists: # (new in 0.10)
Enabled: false # only available from minitest 5.13.0
Minitest/AssertSilent: # (new in 0.10)
Enabled: true
Minitest/LiteralAsActualArgument: # (new in 0.10)
Enabled: true
Minitest/MultipleAssertions: # (new in 0.10)
Enabled: true
Minitest/RefuteInDelta: # (new in 0.10)
Enabled: true
Minitest/RefuteKindOf: # (new in 0.10)
Enabled: true
Minitest/RefutePathExists: # (new in 0.10)
Enabled: false # only available from minitest 5.13.0
Minitest/TestMethodName: # (new in 0.10)
Enabled: true
Minitest/UnspecifiedException: # (new in 0.10)
Enabled: true
AllCops:
Exclude:
- "vendor/**/*"
- "docs/**/*"
- "packaging/**/*"
TargetRubyVersion: 2.4
Layout/EmptyLines:
Exclude:
# Need extra line so comment at top isnt registered to the Dev namespace
- "lib/dev/helpers/chruby_reset.rb"
Layout/EmptyLineBetweenDefs:
AllowAdjacentOneLineDefs: true
# Changing this could effect the way the content is rendered.
Layout/HeredocIndentation:
Exclude:
- "lib/project_types/node/messages/messages.rb"
- "lib/project_types/rails/messages/messages.rb"
- "lib/project_types/script/messages/messages.rb"
- "lib/shopify_cli/messages/messages.rb"
# allow String.new to create mutable strings
Style/EmptyLiteral:
Enabled: false
# allow String.new to create mutable strings
Style/HashSyntax:
Exclude:
- "Rakefile"
# allow using %r{} for regexes
Style/RegexpLiteral:
Enabled: false
Style/MethodCallWithArgsParentheses:
IgnoredMethods:
- assert
- assert_equal
- assert_includes
- assert_nil
- assert_raises
- assert_requested # from Webmock
- puts
- raise
- refute
- refute_empty
- refute_nil
- require
- require_dependency
- require_relative
- yield
Layout/TrailingWhitespace:
Exclude:
- "ext/shopify-cli/extconf.rb" # unsure if safe to remove
- "lib/project_types/extension/messages/messages.rb" # unsure if safe to remove
- "test/project_types/extension/extension_test_helpers/stubs/argo_script.rb" # unsure if save to remove