-
Notifications
You must be signed in to change notification settings - Fork 1
/
.rubocop.yml
57 lines (52 loc) · 1.38 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
---
require:
- rubocop-rspec
- rubocop-performance
AllCops:
DisplayCopNames: true
Exclude:
- 'scripts/*.rb'
NewCops: enable
TargetRubyVersion: 3.1
Layout/ArgumentAlignment:
# https://www.rubydoc.info/github/bbatsov/RuboCop/RuboCop/Cop/Layout/ArgumentAlignment
EnforcedStyle: with_fixed_indentation
Layout/EndAlignment:
# https://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Layout/EndAlignment
EnforcedStyleAlignWith: variable
Layout/FirstArgumentIndentation:
# https://www.rubydoc.info/github/bbatsov/RuboCop/RuboCop/Cop/Layout/FirstArgumentIndentation
Enabled: false
Layout/HashAlignment:
EnforcedLastArgumentHashStyle: ignore_implicit
Layout/LineLength:
Max: 120
Layout/MultilineMethodCallIndentation:
# https://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Layout/MultilineMethodCallIndentation
EnforcedStyle: indented
Metrics/BlockLength:
Exclude:
- 'Rakefile'
- 'spec/**/*.rb'
Metrics/MethodLength:
CountComments: false # count full line comments?
Max: 20
Style/Documentation:
Enabled: false
Style/DoubleNegation:
Enabled: false
Style/FormatStringToken:
Enabled: false
RSpec/ExampleLength:
Max: 20
RSpec/FilePath:
Enabled: false
RSpec/ImplicitSubject:
Enabled: false
RSpec/LetSetup:
# Disabling this one because it interferes with `let!` overrides in contexts
Enabled: false
RSpec/MultipleMemoizedHelpers:
Max: 10
RSpec/NestedGroups:
Max: 5