Skip to content

Commit

Permalink
Use new autograding properties.
Browse files Browse the repository at this point in the history
  • Loading branch information
uhafner committed Dec 6, 2023
1 parent c833a46 commit a9d831e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/reporting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ jobs:
{
"id": "spotbugs",
"name": "SpotBugs",
"sourcePath": "src/main/java",
"pattern": "**/target/spotbugsXml.xml"
}
],
Expand All @@ -88,12 +89,14 @@ jobs:
"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"
}
],
Expand Down Expand Up @@ -135,7 +138,7 @@ jobs:
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add badges/*.svg
git commit -m "Update badges with results from latest autograding"
git commit -m "Update badges with results from latest autograding" || true
- name: Push updated badges to GitHub repository
uses: ad-m/github-push-action@master
if: ${{ success() }}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/edu/hm/hafner/analysis/parser/AjcParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ private Report parse(final Stream<String> lines) {
if (line.startsWith("\t")) {
fillFileName(builder, line);
}
else if ("".equals(line)) {
else if (line.isEmpty()) {
state = States.PARSING;

warnings.add(builder.buildAndClean());
Expand Down

0 comments on commit a9d831e

Please sign in to comment.