-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.rubocop.yml
33 lines (24 loc) · 943 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
inherit_gem:
relaxed-rubocop: .rubocop.yml
inherit_from:
- .rubocop-performance.yml
- .rubocop-rails.yml
- .rubocop-rspec.yml
AllCops:
Exclude:
- vendor/**/* # Prevent validation of bundler gems
NewCops: disable # Ignore "pending" cops
Metrics/BlockLength:
Enabled: false # Length is an unreliable metric.
Style/ClassAndModuleChildren:
Enabled: false # Neither styles are satisfying in all cases
Layout/SpaceInsideArrayLiteralBrackets:
EnforcedStyle: no_space # Similar to prettier's config.
Layout/FirstArrayElementIndentation:
EnforcedStyle: consistent # Consistent with Layout/FirstArgumentIndentation
Layout/FirstHashElementIndentation:
EnforcedStyle: consistent # Consistent with Layout/FirstArgumentIndentation
Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented # Consistent with Rails style
Layout/ArgumentAlignment:
EnforcedStyle: with_fixed_indentation # Consistent with Rails style