From 1d71841968ede69f5b91d44ec5368a4cc95394cd Mon Sep 17 00:00:00 2001 From: Ulli Hafner Date: Fri, 15 Nov 2024 19:33:13 +0100 Subject: [PATCH] Use latest version of quality monitor configuration. --- .github/workflows/quality-monitor.yml | 51 ++++++++++++++++++++++++--- 1 file changed, 46 insertions(+), 5 deletions(-) diff --git a/.github/workflows/quality-monitor.yml b/.github/workflows/quality-monitor.yml index 6ecba75..0c887a6 100644 --- a/.github/workflows/quality-monitor.yml +++ b/.github/workflows/quality-monitor.yml @@ -137,7 +137,7 @@ jobs: ] } ], - "metrics": [ + "metrics": { "name": "Toplevel Metrics", "tools": [ @@ -145,13 +145,19 @@ jobs: "name": "Cyclomatic Complexity", "id": "metrics", "pattern": "**/metrics/pmd.xml", - "metric": "CyclomaticComplexity" + "metric": "CYCLOMATIC_COMPLEXITY" }, { "name": "Cognitive Complexity", "id": "metrics", "pattern": "**/metrics/pmd.xml", - "metric": "CognitiveComplexity" + "metric": "COGNITIVE_COMPLEXITY" + }, + { + "name": "Lines of Code", + "id": "metrics", + "pattern": "**/metrics/pmd.xml", + "metric": "LOC" }, { "name": "Non Commenting Source Statements", @@ -159,13 +165,48 @@ jobs: "pattern": "**/metrics/pmd.xml", "metric": "NCSS" }, + { + "name": "Access to foreign data", + "id": "metrics", + "pattern": "**/metrics/pmd.xml", + "metric": "ACCESS_TO_FOREIGN_DATA" + }, + { + "name": "Class cohesion", + "id": "metrics", + "pattern": "**/metrics/pmd.xml", + "metric": "COHESION" + }, + { + "name": "Fan out", + "id": "metrics", + "pattern": "**/metrics/pmd.xml", + "metric": "FAN_OUT" + }, + { + "name": "Number of accessors", + "id": "metrics", + "pattern": "**/metrics/pmd.xml", + "metric": "NUMBER_OF_ACCESSORS" + }, + { + "name": "Weight of a class", + "id": "metrics", + "pattern": "**/metrics/pmd.xml", + "metric": "WEIGHT_OF_CLASS" + }, + { + "name": "Weighted method count", + "id": "metrics", + "pattern": "**/metrics/pmd.xml", + "metric": "WEIGHED_METHOD_COUNT" + }, { "name": "N-Path Complexity", "id": "metrics", "pattern": "**/metrics/pmd.xml", - "metric": "NPathComplexity" + "metric": "NPATH_COMPLEXITY" } ] } - ] }