Skip to content

Commit 84a2efc

Browse files
author
ABaldwinHunter
committed
Tune remediation points
Tune complexity points, creating more parity with Ruby analysis in Code Climate classic. - Class violations: 5_000_000 + n35_000 - Method violations: 1_000_000 + n70_000
1 parent 038705e commit 84a2efc

File tree

1 file changed

+18
-16
lines changed

1 file changed

+18
-16
lines changed

config/cops.yml

+18-16
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,26 @@
11
Metrics/AbcSize:
2-
violation_points: 100_000
2+
base_points: 1_000_000
3+
violation_points: 70_000
34
Metrics/BlockNesting:
4-
base_points: 30_000
5+
base_points: 100_000
56
Metrics/ClassLength:
6-
base_points: 400_000
7-
Metrics/CyclomaticComplexity:
8-
base_points: 75_000
9-
violation_points: 10_000
7+
base_points: 5_000_000
8+
violation_points: 35_000
9+
Metrics/CyclomaticComplexity: # This check is per method
10+
base_points: 1_000_000
11+
violation_points: 70_000
1012
Metrics/LineLength:
11-
base_points: 20_000
12-
violation_points: 5_000
13-
Metrics/MethodLength:
14-
base_points: 50_000
13+
base_points: 100_000
1514
violation_points: 10_000
15+
Metrics/MethodLength:
16+
base_points: 1_000_000
17+
violation_points: 70_000
1618
Metrics/ModuleLength:
17-
base_points: 500_000
18-
violation_points: 5_000
19+
base_points: 5_000_000
20+
violation_points: 35_000
1921
Metrics/ParameterList:
20-
base_points: 10_000
21-
violation_points: 50_000
22+
base_points: 500_000
23+
violation_points: 100_000
2224
Metrics/PerceivedComplexity:
23-
base_points: 50_000
24-
violation_points: 5000
25+
base_points: 1_000_000
26+
violation_points: 70_000

0 commit comments

Comments
 (0)