Skip to content

Commit

Permalink
Merge pull request #1013 from uhafner/error-prone
Browse files Browse the repository at this point in the history
Activate ErrorProne reporting in QualityMonitor
  • Loading branch information
uhafner committed May 8, 2024
2 parents 56ba5e0 + b07ddc8 commit c6da777
Show file tree
Hide file tree
Showing 3 changed files with 97 additions and 2 deletions.
97 changes: 97 additions & 0 deletions .github/workflows/quality-monitor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,100 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
pr-number: ${{ steps.pr.outputs.number }}
config: >
{
"tests": {
"name": "Tests",
"tools": [
{
"id": "test",
"name": "Tests",
"pattern": "**/target/*-reports/TEST*.xml"
}
],
"passedImpact": 0,
"skippedImpact": -1,
"failureImpact": -5,
"maxScore": 100
},
"analysis": [
{
"name": "Style",
"id": "style",
"tools": [
{
"id": "checkstyle",
"pattern": "**/target/**checkstyle-result.xml"
},
{
"id": "pmd",
"pattern": "**/target/**pmd.xml"
}
],
"errorImpact": -1,
"highImpact": -1,
"normalImpact": -1,
"lowImpact": -1,
"maxScore": 100
},
{
"name": "Bugs",
"id": "bugs",
"icon": "bug",
"tools": [
{
"id": "spotbugs",
"sourcePath": "src/main/java",
"pattern": "**/target/spotbugsXml.xml"
},
{
"id": "errorprone",
"pattern": "**/maven.log"
}
],
"errorImpact": -3,
"highImpact": -3,
"normalImpact": -3,
"lowImpact": -3,
"maxScore": 100
}
],
"coverage": [
{
"name": "Code Coverage",
"tools": [
{
"id": "jacoco",
"name": "Line Coverage",
"metric": "line",
"sourcePath": "src/main/java",
"pattern": "**/target/site/jacoco/jacoco.xml"
},
{
"id": "jacoco",
"name": "Branch Coverage",
"metric": "branch",
"sourcePath": "src/main/java",
"pattern": "**/target/site/jacoco/jacoco.xml"
}
],
"maxScore": 100,
"missedPercentageImpact": -1
},
{
"name": "Mutation Coverage",
"tools": [
{
"id": "pit",
"name": "Mutation Coverage",
"metric": "mutation",
"sourcePath": "src/main/java",
"pattern": "**/target/pit-reports/mutations.xml"
}
],
"maxScore": 100,
"missedPercentageImpact": -1
}
]
}
1 change: 0 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,6 @@
<execution>
<id>run-spotbugs</id>
<goals>
<goal>spotbugs</goal>
<goal>check</goal>
</goals>
<phase>verify</phase>
Expand Down
1 change: 0 additions & 1 deletion src/main/java/edu/hm/hafner/util/Ensure.java
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,6 @@ public ObjectCondition(@CheckForNull final T value) {
* @param additionalValues
* additional values of the condition
*/
@SuppressFBWarnings("EI2")
@SuppressWarnings("PMD.ArrayIsStoredDirectly")
public ObjectCondition(@CheckForNull final T value, @CheckForNull final Object... additionalValues) {
this.value = value;
Expand Down

0 comments on commit c6da777

Please sign in to comment.