-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy path.rubocop.yml
106 lines (92 loc) · 2.05 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
103
104
105
106
# Warning:
# run `bundle exec rubocop` like Travis
# and not `rubocop` only
AllCops:
NewCops: enable
Exclude:
- 'vendor/**/*'
- 'Guardfile'
- 'db/migrate/*'
- 'bin/*'
- 'config/initializers/*'
# TODO: remove when dropping v1
- 'spec/controllers/api/v1/**/*'
- 'app/interactors/**/*'
- 'app/controllers/api/v1/**/*'
Layout/LineLength:
Enabled: false
Metrics/BlockLength:
Exclude:
- 'spec/interactors/*'
- 'spec/controllers/api/v1/*'
- 'spec/support/shared_examples/*'
- 'db/schema.rb'
- 'spec/factories/*'
- 'config/routes.rb'
IgnoredMethods:
- 'describe'
- 'context'
- 'namespace'
Style/Documentation:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: false
Style/ClassAndModuleChildren:
EnforcedStyle: compact
Exclude:
- 'app/channels/**/*'
- 'app/concepts/**/*'
- 'spec/support/trailblazer.rb'
- 'config/application.rb'
Style/PercentLiteralDelimiters:
PreferredDelimiters:
default: '{}'
Style/SignalException:
Exclude:
- 'app/concepts/**/*'
Naming/VariableNumber:
Enabled: false
Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented
Lint/AmbiguousOperator:
Exclude:
- 'app/serializers/**/*'
Lint/EmptyBlock:
Enabled: false
Lint/MissingSuper:
Enabled: false
Lint/UnreachableCode:
Exclude:
- 'app/concepts/**/*'
Naming/MethodParameterName:
AllowedNames:
- '_'
- 'to'
# These Cops are not enabled by default:
Layout/EmptyLinesAroundAttributeAccessor:
Enabled: true
Layout/SpaceAroundMethodCallOperator:
Enabled: true
Lint/DeprecatedOpenSSLConstant:
Enabled: true
Lint/RaiseException:
Enabled: true
Lint/StructNewOverride:
Enabled: true
Style/ExponentialNotation:
Enabled: true
Style/HashEachMethods:
Enabled: true
Style/HashTransformKeys:
Enabled: true
Style/HashTransformValues:
Enabled: true
Style/SlicingWithRange:
Enabled: true
Lint/MixedRegexpCaptureTypes:
Enabled: true
Style/RedundantRegexpCharacterClass:
Enabled: true
Style/RedundantRegexpEscape:
Enabled: true
# end Cops to enable