Skip to content

Commit

Permalink
Tune remediation points
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ABaldwinHunter committed Dec 28, 2015
1 parent 038705e commit 63c7ac5
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions config/cops.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
Metrics/AbcSize:
violation_points: 100_000
base_points: 1_000_000
violation_points: 70_000
Metrics/BlockNesting:
base_points: 30_000
base_points: 100_000
Metrics/ClassLength:
base_points: 400_000
Metrics/CyclomaticComplexity:
base_points: 75_000
violation_points: 10_000
base_points: 5_000_000
violation_points: 35_000
Metrics/CyclomaticComplexity: # This check is per method
base_points: 1_000_000
violation_points: 70_000
Metrics/LineLength:
base_points: 20_000
violation_points: 5_000
Metrics/MethodLength:
base_points: 50_000
violation_points: 10_000
Metrics/MethodLength:
base_points: 1_000_000
violation_points: 70_000
Metrics/ModuleLength:
base_points: 500_000
violation_points: 5_000
base_points: 5_000_000
violation_points: 35_000
Metrics/ParameterList:
base_points: 10_000
violation_points: 50_000
base_points: 500_000
violation_points: 100_000
Metrics/PerceivedComplexity:
base_points: 50_000
violation_points: 5000
base_points: 1_000_000
violation_points: 70_000

0 comments on commit 63c7ac5

Please sign in to comment.