From 872342351d9b1eaa4cdc82dd2640e46544741250 Mon Sep 17 00:00:00 2001 From: Ulli Hafner Date: Mon, 24 Feb 2025 22:24:16 +0100 Subject: [PATCH] Fix broken help text of metrics selection --- .../CoverageMetricColumn/help-metric.html | 16 +++++++++----- .../CoverageQualityGate/help-metric.html | 22 +++++++++++-------- 2 files changed, 24 insertions(+), 14 deletions(-) diff --git a/plugin/src/main/resources/io/jenkins/plugins/coverage/metrics/steps/CoverageMetricColumn/help-metric.html b/plugin/src/main/resources/io/jenkins/plugins/coverage/metrics/steps/CoverageMetricColumn/help-metric.html index d2230d7d..c89b9114 100644 --- a/plugin/src/main/resources/io/jenkins/plugins/coverage/metrics/steps/CoverageMetricColumn/help-metric.html +++ b/plugin/src/main/resources/io/jenkins/plugins/coverage/metrics/steps/CoverageMetricColumn/help-metric.html @@ -28,13 +28,19 @@
Function call coverage (given as percentage)
TEST_STRENGTH
Test Strength (given as percentage)
-
COMPLEXITY
+
CYCLOMATIC_COMPLEXITY
Cyclomatic complexity (given as absolute number)
-
COMPLEXITY_DENSITY
-
Cyclomatic complexity density (given as relation between cyclomatic complexity and lines of code)
-
COMPLEXITY_MAXIMUM
-
Maximum cyclomatic complexity of all methods (given as absolute number)
+
COGNITIVE_COMPLEXITY
+
Cognitive complexity (given as absolute number)
+
NPATH_COMPLEXITY
+
N-Path complexity (given as absolute number)
LOC
Lines of code (given as absolute number)
+
NCSS
+
Non Commenting Source Statements (given as absolute number)
+
COHESION
+
Class cohesion (given as percentage)
+
WEIGHT_OF_CLASS
+
Weight of a class (given as percentage)
diff --git a/plugin/src/main/resources/io/jenkins/plugins/coverage/metrics/steps/CoverageQualityGate/help-metric.html b/plugin/src/main/resources/io/jenkins/plugins/coverage/metrics/steps/CoverageQualityGate/help-metric.html index e268c815..c89b9114 100644 --- a/plugin/src/main/resources/io/jenkins/plugins/coverage/metrics/steps/CoverageQualityGate/help-metric.html +++ b/plugin/src/main/resources/io/jenkins/plugins/coverage/metrics/steps/CoverageQualityGate/help-metric.html @@ -7,7 +7,7 @@
MODULE
Covered and missed modules (given as percentage)
PACKAGE
-
Covered and missed packages; also used for namespaces or directories (given as percentage)
+
Covered and missed packages - also used for namespaces or directories (given as percentage)
FILE
Covered and missed files (given as percentage)
CLASS
@@ -25,18 +25,22 @@
MCDC_PAIR
MC/DC Pair coverage (given as percentage)
FUNCTION_CALL
-
Function call coverage(given as percentage)
+
Function call coverage (given as percentage)
TEST_STRENGTH
Test Strength (given as percentage)
-
COMPLEXITY
+
CYCLOMATIC_COMPLEXITY
Cyclomatic complexity (given as absolute number)
-
COMPLEXITY_DENSITY
-
Cyclomatic complexity density (given as relation between cyclomatic complexity and lines of code)
-
COMPLEXITY_MAXIMUM
-
Maximum cyclomatic complexity of all methods (given as absolute number)
+
COGNITIVE_COMPLEXITY
+
Cognitive complexity (given as absolute number)
+
NPATH_COMPLEXITY
+
N-Path complexity (given as absolute number)
LOC
Lines of code (given as absolute number)
-
TESTS
-
Number of tests (given as absolute number)
+
NCSS
+
Non Commenting Source Statements (given as absolute number)
+
COHESION
+
Class cohesion (given as percentage)
+
WEIGHT_OF_CLASS
+
Weight of a class (given as percentage)