Skip to content

Commit d5e9ca3

Browse files
committed
Change rubocop metrics limits and activate the new cops
1 parent f72e1de commit d5e9ca3

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

.rubocop.yml

+15-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
1+
AllCops:
2+
NewCops: enable
3+
4+
Layout/LineLength:
5+
Max: 80
6+
17
Lint/AssignmentInCondition:
28
Enabled: false
39

410
Metrics/AbcSize:
5-
Max: 30
11+
Max: 40
612

713
Metrics/BlockLength:
814
CountComments: true
915
Max: 25
10-
ExcludedMethods: []
16+
IgnoredMethods: []
1117
Exclude:
1218
- "spec/**/*"
1319

@@ -17,22 +23,23 @@ Metrics/ClassLength:
1723
Metrics/CyclomaticComplexity:
1824
Enabled: false
1925

20-
Metrics/LineLength:
21-
Max: 80
22-
2326
Metrics/MethodLength:
2427
Max: 20
2528

29+
Metrics/ModuleLength:
30+
Max: 300
31+
32+
Metrics/ParameterLists:
33+
Max: 20
34+
2635
Naming/BinaryOperatorParameterName:
2736
Enabled: false
2837

2938
Style/AsciiComments:
3039
Enabled: false
3140

3241
Style/LambdaCall:
33-
SupportedStyles:
34-
- call
35-
- braces
42+
EnforcedStyle: braces
3643

3744
Style/StringLiterals:
3845
EnforcedStyle: double_quotes

0 commit comments

Comments
 (0)