-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
48 lines (39 loc) · 1.09 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
AllCops:
# We lock rubocop in Gemfile.lock, so we want all the pending cops. This means
# you must fix all new cops when bumping rubocop in the gemfile, which seems
# reasonable.
# See: https://docs.rubocop.org/rubocop/versioning.html for more details
NewCops: enable
Exclude:
- 'bin/**/*'
- 'vendor/**/*'
- 'build/**/*'
- 'lib/tanker-core.rb'
TargetRubyVersion: 3.2
Layout/LineLength:
Max: 120
# This is annoying for "enum" classes like Verification
Layout/EmptyLineBetweenDefs:
Enabled: false
Metrics/MethodLength:
Max: 50
Style/ClassAndModuleChildren:
Enabled: false
# The %i[] syntax is not obvious to readers
Style/SymbolArray:
EnforcedStyle: brackets
# One accessor per line is actually more readable sometimes
Style/AccessorGrouping:
Enabled: false
# The full documentation is on our website
Style/Documentation:
Enabled: false
# Cyclomatic complexity is not a great metric
# This gives false positives when switching on a few cases
Metrics/AbcSize:
Enabled: false
# Tests have long blocks
Metrics/BlockLength:
Exclude:
- 'spec/**/*'
- '*.gemspec'