-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathrubocop.yml
61 lines (61 loc) · 1.32 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
# Please keep AllCops, Bundler, Layout, Style, Metrics groups and then order cops
# alphabetically
#
# References:
# * https://github.com/bbatsov/ruby-style-guide
# * https://rubocop.readthedocs.io/
AllCops:
DisplayCopNames: true
DisplayStyleGuide: true
ExtraDetails: false
TargetRubyVersion: 3.1
NewCops: enable
Bundler/OrderedGems:
Enabled: false
Gemspec/OrderedDependencies:
Enabled: false
Layout/EmptyLinesAroundAttributeAccessor:
Enabled: true
Layout/LineLength:
Enabled: false
Layout/SpaceAroundMethodCallOperator:
Enabled: true
Lint/RaiseException:
Enabled: true
AllowedImplicitNamespaces: ['Gem']
Lint/StructNewOverride:
Enabled: true
Metrics/BlockLength:
Exclude:
- "spec/**/*"
Metrics/ModuleLength:
Exclude:
- "spec/**/*"
Style/AndOr:
Enabled: false
Style/Documentation:
Enabled: false
Style/EmptyMethod:
Enabled: false
Style/ExponentialNotation:
Enabled: true
Style/FrozenStringLiteralComment:
Enabled: true
Style/HashEachMethods:
Enabled: true
Style/HashTransformKeys:
Enabled: true
Style/HashTransformValues:
Enabled: true
Style/RaiseArgs:
Enabled: false
Style/RegexpLiteral:
Enabled: false
Style/SlicingWithRange:
Enabled: true
Style/StringLiterals:
Enabled: true
EnforcedStyle: double_quotes
Naming/RescuedExceptionsVariableName:
Enabled: true
PreferredName: exception