Skip to content

Commit

Permalink
Bump quality-monitor to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
uhafner committed Feb 26, 2025
1 parent 4c54f54 commit 6b6f529
Showing 1 changed file with 26 additions and 37 deletions.
63 changes: 26 additions & 37 deletions .github/workflows/quality-monitor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,21 +41,22 @@ jobs:
uses: jwalton/gh-find-current-pr@v1
id: pr
- name: Run Quality Monitor
uses: uhafner/quality-monitor@v1
uses: uhafner/quality-monitor@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
pr-number: ${{ steps.pr.outputs.number }}
show-headers: true
config: >
{
"tests": {
"name": "Tests",
"tools": [
{
"id": "test",
"name": "Tests",
"id": "junit",
"name": "JUnit Tests",
"pattern": "**/target/*-reports/TEST*.xml"
}
],
"name": "Tests"
]
},
"analysis": [
{
Expand All @@ -64,7 +65,7 @@ jobs:
"tools": [
{
"id": "checkstyle",
"pattern": "**/target/checkstyle-*/checkstyle-result.xml"
"pattern": "**/target/**checkstyle-result.xml"
},
{
"id": "pmd",
Expand All @@ -88,6 +89,18 @@ jobs:
}
]
},
{
"name": "API Problems",
"id": "api",
"icon": "no_entry_sign",
"tools": [
{
"id": "revapi",
"sourcePath": "src/main/java",
"pattern": "**/target/revapi-result.json"
}
]
},
{
"name": "Vulnerabilities",
"id": "vulnerabilities",
Expand Down Expand Up @@ -123,7 +136,7 @@ jobs:
],
"metrics":
{
"name": "Toplevel Metrics",
"name": "Software Metrics",
"tools": [
{
"name": "Cyclomatic Complexity",
Expand All @@ -138,58 +151,34 @@ jobs:
"metric": "COGNITIVE_COMPLEXITY"
},
{
"name": "Lines of Code",
"name": "N-Path Complexity",
"id": "metrics",
"pattern": "**/metrics/pmd.xml",
"metric": "LOC"
"metric": "NPATH_COMPLEXITY"
},
{
"name": "Non Commenting Source Statements",
"name": "Lines of Code",
"id": "metrics",
"pattern": "**/metrics/pmd.xml",
"metric": "NCSS"
"metric": "LOC"
},
{
"name": "Access to foreign data",
"name": "Non Commenting Source Statements",
"id": "metrics",
"pattern": "**/metrics/pmd.xml",
"metric": "ACCESS_TO_FOREIGN_DATA"
"metric": "NCSS"
},
{
"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": "NPATH_COMPLEXITY"
}
]
}
Expand Down

0 comments on commit 6b6f529

Please sign in to comment.