Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change renaming of sonars complexity to mcc #3456
Browse files Browse the repository at this point in the history
Nereboss authored and phanlezz committed May 6, 2024
1 parent 5787f0a commit b49289c
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ fun createMetricTranslator(): MetricNameTranslator {
replacementMap["accessors"] = "accessors"
replacementMap["commented_out_code_lines"] = "commented_out_loc"
replacementMap["comment_lines"] = "comment_lines"
replacementMap["complexity"] = "mcc"
replacementMap["complexity"] = "sonar_complexity (formerly mcc)"
replacementMap["function_complexity"] = "average_function_mcc"
replacementMap["branch_coverage"] = "branch_coverage"
replacementMap["functions"] = "functions"
Original file line number Diff line number Diff line change
@@ -67,7 +67,7 @@ protected lateinit var sensorContext: SensorContextTester
protected open fun translateMetricNames(metricKey: String): String {
return when (metricKey) {
"commented_out_code_lines" -> "commented_out_loc"
"complexity" -> "mcc"
"complexity" -> "complexity (formerly mcc)"
"function_complexity" -> "average_function_mcc"
"lines" -> "loc"
"ncloc" -> "rloc"

0 comments on commit b49289c

Please sign in to comment.