-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.rubocop.yml
53 lines (50 loc) · 1.42 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
# Default config: https://github.com/rubocop/rubocop/blob/master/config/default.yml
inherit_mode:
merge:
- Exclude
- Include
require:
- rubocop-minitest
- rubocop-rake
AllCops:
DisplayCopNames: true
DisplayStyleGuide: true
Exclude:
- "**/Gemfile-*.lock"
Include:
- "**/Gemfile-*"
NewCops: enable
TargetRubyVersion: 2.7
Layout/ExtraSpacing:
AllowBeforeTrailingComments: true
Layout/HashAlignment:
EnforcedColonStyle: table
EnforcedHashRocketStyle: table
Layout/LineLength:
Max: 200
Layout/SpaceInsideHashLiteralBraces:
EnforcedStyle: no_space
Metrics/AbcSize:
Max: 50
Metrics/BlockLength:
Max: 200
Metrics/ClassLength:
Enabled: false # test classes are big
Metrics/MethodLength:
Max: 50
Metrics/ModuleLength:
Max: 200
Minitest/MultipleAssertions:
Enabled: false
Naming/MemoizedInstanceVariableName:
EnforcedStyleForLeadingUnderscores: required
Style/ClassAndModuleChildren:
Enabled: false # we use both compact and nested style, preferring compact
Style/ClassVars:
Enabled: false # it's ok when knowing it's limitations, easy to access from class instance scope
Style/Documentation:
Enabled: false # we have documentation in the readme
Style/IfUnlessModifier:
Enabled: false # we like to use if/unless blocks for single-line expressions or statements that are long, avoiding making the line even longer with trailing if/unless modifier
Style/NumericPredicate:
EnforcedStyle: comparison