Skip to content

Fix path for metrics and PMD. #1539

Fix path for metrics and PMD.

Fix path for metrics and PMD. #1539

GitHub Actions / Quality Monitor failed Oct 26, 2024 in 0s

Quality Monitor

Partial score: 0/0

🚧 The grading has been aborted due to an error.

Exception

edu.hm.hafner.analysis.ParsingException: Input stream is not a PMD file.
	at edu.hm.hafner.analysis.parser.pmd.PmdParser.parseIssues(PmdParser.java:58)
	at edu.hm.hafner.analysis.parser.pmd.PmdParser.parse(PmdParser.java:32)
	at edu.hm.hafner.analysis.IssueParser.parseFile(IssueParser.java:69)
	at edu.hm.hafner.grading.FileSystemAnalysisReportFactory.create(FileSystemAnalysisReportFactory.java:32)
	at edu.hm.hafner.grading.AggregatedScore.gradeAnalysis(AggregatedScore.java:392)
	at edu.hm.hafner.grading.AutoGradingRunner.run(AutoGradingRunner.java:95)
	at edu.hm.hafner.grading.github.QualityMonitor.main(QualityMonitor.java:42)

Error Messages

Quality Monitor Errors:
An error occurred while grading
edu.hm.hafner.analysis.ParsingException: Input stream is not a PMD file.
	at edu.hm.hafner.analysis.parser.pmd.PmdParser.parseIssues(PmdParser.java:58)
	at edu.hm.hafner.analysis.parser.pmd.PmdParser.parse(PmdParser.java:32)
	at edu.hm.hafner.analysis.IssueParser.parseFile(IssueParser.java:69)
	at edu.hm.hafner.grading.FileSystemAnalysisReportFactory.create(FileSystemAnalysisReportFactory.java:32)
	at edu.hm.hafner.grading.AggregatedScore.gradeAnalysis(AggregatedScore.java:392)
	at edu.hm.hafner.grading.AutoGradingRunner.run(AutoGradingRunner.java:95)
	at edu.hm.hafner.grading.github.QualityMonitor.main(QualityMonitor.java:42)

Information Messages

--------------------------------------------------------------------------------
                    Start Quality Monitor 1.11.0 (#99404b7)                     
--------------------------------------------------------------------------------
No configuration provided (environment variable CONFIG not set), using default configuration
================================================================================
Processing 1 test configuration(s)
Tests Configuration:
{
  "id" : "tests",
  "name" : "Tests",
  "icon" : "",
  "maxScore" : 0,
  "tools" : [ {
    "id" : "test",
    "name" : "Tests",
    "pattern" : "**/target/*-reports/TEST*.xml",
    "sourcePath" : "",
    "metric" : "",
    "displayName" : "Tests"
  } ],
  "failureImpact" : 0,
  "passedImpact" : 0,
  "skippedImpact" : 0
}
Searching for Tests results matching file name pattern **/target/*-reports/TEST*.xml
- target/surefire-reports/TEST-edu.hm.hafner.util.ArchitectureRulesTest.xml: TESTS: 7
- target/surefire-reports/TEST-edu.hm.hafner.util.ArchitectureTest.xml: TESTS: 9
- target/surefire-reports/TEST-edu.hm.hafner.util.EnsureTest.xml: TESTS: 5
- target/surefire-reports/TEST-edu.hm.hafner.util.FilteredLogTest.xml: TESTS: 11
- target/surefire-reports/TEST-edu.hm.hafner.util.LineRangeListTest.xml: TESTS: 6
- target/surefire-reports/TEST-edu.hm.hafner.util.LineRangeTest.xml: TESTS: 3
- target/surefire-reports/TEST-edu.hm.hafner.util.LookaheadStreamTest.xml: TESTS: 5
- target/surefire-reports/TEST-edu.hm.hafner.util.PackageArchitectureTest.xml: TESTS: 1
- target/surefire-reports/TEST-edu.hm.hafner.util.PathUtilTest.xml: TESTS: 24
- target/surefire-reports/TEST-edu.hm.hafner.util.PrefixLoggerTest.xml: TESTS: 1
- target/surefire-reports/TEST-edu.hm.hafner.util.ResourceExtractorTest.xml: TESTS: 9
- target/surefire-reports/TEST-edu.hm.hafner.util.SecureXmlParserFactoryTest.xml: TESTS: 7
- target/surefire-reports/TEST-edu.hm.hafner.util.StringComparableTest.xml: TESTS: 2
- target/surefire-reports/TEST-edu.hm.hafner.util.StringEqualsTest.xml: TESTS: 2
- target/surefire-reports/TEST-edu.hm.hafner.util.TreeStringBuilderTest.xml: TESTS: 5
-> Tests Total: TESTS: 97
-> Tests Total: TESTS: 97 tests
=> Tests: 95 tests passed, 2 skipped
=> Tests: 95 tests passed, 2 skipped
================================================================================
Processing 2 coverage configuration(s)
Code Coverage Configuration:
{
  "id" : "coverage",
  "name" : "Code Coverage",
  "icon" : "",
  "maxScore" : 0,
  "tools" : [ {
    "id" : "jacoco",
    "name" : "Line Coverage",
    "pattern" : "**/target/site/jacoco/jacoco.xml",
    "sourcePath" : "src/main/java",
    "metric" : "line",
    "displayName" : "Line Coverage"
  }, {
    "id" : "jacoco",
    "name" : "Branch Coverage",
    "pattern" : "**/target/site/jacoco/jacoco.xml",
    "sourcePath" : "src/main/java",
    "metric" : "branch",
    "displayName" : "Branch Coverage"
  } ],
  "coveredPercentageImpact" : 0,
  "missedPercentageImpact" : 0,
  "mutationCoverage" : false
}
Searching for Line Coverage results matching file name pattern **/target/site/jacoco/jacoco.xml
- target/site/jacoco/jacoco.xml: LINE: 90.79% (621/684)
-> Line Coverage Total: LINE: 90.79% (621/684)
=> Line Coverage: 91% (63 missed lines)
Searching for Branch Coverage results matching file name pattern **/target/site/jacoco/jacoco.xml
- target/site/jacoco/jacoco.xml: BRANCH: 91.28% (199/218)
-> Branch Coverage Total: BRANCH: 91.28% (199/218)
=> Branch Coverage: 91% (19 missed branches)
=> Code Coverage: 91% (82 missed items)
Mutation Coverage Configuration:
{
  "id" : "coverage",
  "name" : "Mutation Coverage",
  "icon" : "",
  "maxScore" : 0,
  "tools" : [ {
    "id" : "pit",
    "name" : "Mutation Coverage",
    "pattern" : "**/target/pit-reports/mutations.xml",
    "sourcePath" : "src/main/java",
    "metric" : "mutation",
    "displayName" : "Mutation Coverage"
  } ],
  "coveredPercentageImpact" : 0,
  "missedPercentageImpact" : 0,
  "mutationCoverage" : true
}
Searching for Mutation Coverage results matching file name pattern **/target/pit-reports/mutations.xml
- target/pit-reports/mutations.xml: MUTATION: 79.63% (305/383)
-> Mutation Coverage Total: MUTATION: 79.63% (305/383)
=> Mutation Coverage: 80% (78 survived mutations)
=> Mutation Coverage: 80% (78 survived mutations)
================================================================================
Processing 2 static analysis configuration(s)
Style Configuration:
{
  "id" : "style",
  "name" : "Style",
  "icon" : "",
  "maxScore" : 0,
  "tools" : [ {
    "id" : "checkstyle",
    "name" : "CheckStyle",
    "pattern" : "**/target/**checkstyle-result.xml",
    "sourcePath" : "",
    "metric" : "",
    "displayName" : "CheckStyle"
  }, {
    "id" : "pmd",
    "name" : "PMD",
    "pattern" : "**/target/**pmd.xml",
    "sourcePath" : "",
    "metric" : "",
    "displayName" : "PMD"
  } ],
  "errorImpact" : 0,
  "highImpact" : 0,
  "normalImpact" : 0,
  "lowImpact" : 0
}
Searching for CheckStyle results matching file name pattern **/target/**checkstyle-result.xml
- target/checkstyle-java/checkstyle-result.xml: 0 warnings
- target/checkstyle-tests/checkstyle-result.xml: 0 warnings
-> CheckStyle Total: 0 warnings
=> CheckStyle: No warnings
Searching for PMD results matching file name pattern **/target/**pmd.xml
================================================================================
================================================================================

Created by Quality Monitor v1.11.0 (#99404b7)

Details

Partial score: 0/0

🚧 The grading has been aborted due to an error.

Exception

edu.hm.hafner.analysis.ParsingException: Input stream is not a PMD file.
	at edu.hm.hafner.analysis.parser.pmd.PmdParser.parseIssues(PmdParser.java:58)
	at edu.hm.hafner.analysis.parser.pmd.PmdParser.parse(PmdParser.java:32)
	at edu.hm.hafner.analysis.IssueParser.parseFile(IssueParser.java:69)
	at edu.hm.hafner.grading.FileSystemAnalysisReportFactory.create(FileSystemAnalysisReportFactory.java:32)
	at edu.hm.hafner.grading.AggregatedScore.gradeAnalysis(AggregatedScore.java:392)
	at edu.hm.hafner.grading.AutoGradingRunner.run(AutoGradingRunner.java:95)
	at edu.hm.hafner.grading.github.QualityMonitor.main(QualityMonitor.java:42)

Error Messages

Quality Monitor Errors:
An error occurred while grading
edu.hm.hafner.analysis.ParsingException: Input stream is not a PMD file.
	at edu.hm.hafner.analysis.parser.pmd.PmdParser.parseIssues(PmdParser.java:58)
	at edu.hm.hafner.analysis.parser.pmd.PmdParser.parse(PmdParser.java:32)
	at edu.hm.hafner.analysis.IssueParser.parseFile(IssueParser.java:69)
	at edu.hm.hafner.grading.FileSystemAnalysisReportFactory.create(FileSystemAnalysisReportFactory.java:32)
	at edu.hm.hafner.grading.AggregatedScore.gradeAnalysis(AggregatedScore.java:392)
	at edu.hm.hafner.grading.AutoGradingRunner.run(AutoGradingRunner.java:95)
	at edu.hm.hafner.grading.github.QualityMonitor.main(QualityMonitor.java:42)

Information Messages

--------------------------------------------------------------------------------
                    Start Quality Monitor 1.11.0 (#99404b7)                     
--------------------------------------------------------------------------------
No configuration provided (environment variable CONFIG not set), using default configuration
================================================================================
Processing 1 test configuration(s)
Tests Configuration:
{
  "id" : "tests",
  "name" : "Tests",
  "icon" : "",
  "maxScore" : 0,
  "tools" : [ {
    "id" : "test",
    "name" : "Tests",
    "pattern" : "**/target/*-reports/TEST*.xml",
    "sourcePath" : "",
    "metric" : "",
    "displayName" : "Tests"
  } ],
  "failureImpact" : 0,
  "passedImpact" : 0,
  "skippedImpact" : 0
}
Searching for Tests results matching file name pattern **/target/*-reports/TEST*.xml
- target/surefire-reports/TEST-edu.hm.hafner.util.ArchitectureRulesTest.xml: TESTS: 7
- target/surefire-reports/TEST-edu.hm.hafner.util.ArchitectureTest.xml: TESTS: 9
- target/surefire-reports/TEST-edu.hm.hafner.util.EnsureTest.xml: TESTS: 5
- target/surefire-reports/TEST-edu.hm.hafner.util.FilteredLogTest.xml: TESTS: 11
- target/surefire-reports/TEST-edu.hm.hafner.util.LineRangeListTest.xml: TESTS: 6
- target/surefire-reports/TEST-edu.hm.hafner.util.LineRangeTest.xml: TESTS: 3
- target/surefire-reports/TEST-edu.hm.hafner.util.LookaheadStreamTest.xml: TESTS: 5
- target/surefire-reports/TEST-edu.hm.hafner.util.PackageArchitectureTest.xml: TESTS: 1
- target/surefire-reports/TEST-edu.hm.hafner.util.PathUtilTest.xml: TESTS: 24
- target/surefire-reports/TEST-edu.hm.hafner.util.PrefixLoggerTest.xml: TESTS: 1
- target/surefire-reports/TEST-edu.hm.hafner.util.ResourceExtractorTest.xml: TESTS: 9
- target/surefire-reports/TEST-edu.hm.hafner.util.SecureXmlParserFactoryTest.xml: TESTS: 7
- target/surefire-reports/TEST-edu.hm.hafner.util.StringComparableTest.xml: TESTS: 2
- target/surefire-reports/TEST-edu.hm.hafner.util.StringEqualsTest.xml: TESTS: 2
- target/surefire-reports/TEST-edu.hm.hafner.util.TreeStringBuilderTest.xml: TESTS: 5
-> Tests Total: TESTS: 97
-> Tests Total: TESTS: 97 tests
=> Tests: 95 tests passed, 2 skipped
=> Tests: 95 tests passed, 2 skipped
================================================================================
Processing 2 coverage configuration(s)
Code Coverage Configuration:
{
  "id" : "coverage",
  "name" : "Code Coverage",
  "icon" : "",
  "maxScore" : 0,
  "tools" : [ {
    "id" : "jacoco",
    "name" : "Line Coverage",
    "pattern" : "**/target/site/jacoco/jacoco.xml",
    "sourcePath" : "src/main/java",
    "metric" : "line",
    "displayName" : "Line Coverage"
  }, {
    "id" : "jacoco",
    "name" : "Branch Coverage",
    "pattern" : "**/target/site/jacoco/jacoco.xml",
    "sourcePath" : "src/main/java",
    "metric" : "branch",
    "displayName" : "Branch Coverage"
  } ],
  "coveredPercentageImpact" : 0,
  "missedPercentageImpact" : 0,
  "mutationCoverage" : false
}
Searching for Line Coverage results matching file name pattern **/target/site/jacoco/jacoco.xml
- target/site/jacoco/jacoco.xml: LINE: 90.79% (621/684)
-> Line Coverage Total: LINE: 90.79% (621/684)
=> Line Coverage: 91% (63 missed lines)
Searching for Branch Coverage results matching file name pattern **/target/site/jacoco/jacoco.xml
- target/site/jacoco/jacoco.xml: BRANCH: 91.28% (199/218)
-> Branch Coverage Total: BRANCH: 91.28% (199/218)
=> Branch Coverage: 91% (19 missed branches)
=> Code Coverage: 91% (82 missed items)
Mutation Coverage Configuration:
{
  "id" : "coverage",
  "name" : "Mutation Coverage",
  "icon" : "",
  "maxScore" : 0,
  "tools" : [ {
    "id" : "pit",
    "name" : "Mutation Coverage",
    "pattern" : "**/target/pit-reports/mutations.xml",
    "sourcePath" : "src/main/java",
    "metric" : "mutation",
    "displayName" : "Mutation Coverage"
  } ],
  "coveredPercentageImpact" : 0,
  "missedPercentageImpact" : 0,
  "mutationCoverage" : true
}
Searching for Mutation Coverage results matching file name pattern **/target/pit-reports/mutations.xml
- target/pit-reports/mutations.xml: MUTATION: 79.63% (305/383)
-> Mutation Coverage Total: MUTATION: 79.63% (305/383)
=> Mutation Coverage: 80% (78 survived mutations)
=> Mutation Coverage: 80% (78 survived mutations)
================================================================================
Processing 2 static analysis configuration(s)
Style Configuration:
{
  "id" : "style",
  "name" : "Style",
  "icon" : "",
  "maxScore" : 0,
  "tools" : [ {
    "id" : "checkstyle",
    "name" : "CheckStyle",
    "pattern" : "**/target/**checkstyle-result.xml",
    "sourcePath" : "",
    "metric" : "",
    "displayName" : "CheckStyle"
  }, {
    "id" : "pmd",
    "name" : "PMD",
    "pattern" : "**/target/**pmd.xml",
    "sourcePath" : "",
    "metric" : "",
    "displayName" : "PMD"
  } ],
  "errorImpact" : 0,
  "highImpact" : 0,
  "normalImpact" : 0,
  "lowImpact" : 0
}
Searching for CheckStyle results matching file name pattern **/target/**checkstyle-result.xml
- target/checkstyle-java/checkstyle-result.xml: 0 warnings
- target/checkstyle-tests/checkstyle-result.xml: 0 warnings
-> CheckStyle Total: 0 warnings
=> CheckStyle: No warnings
Searching for PMD results matching file name pattern **/target/**pmd.xml
================================================================================
================================================================================

Annotations

Check warning on line 117 in src/main/java/edu/hm/hafner/util/LineRangeList.java

See this annotation in the file changed.

@github-actions github-actions / Quality Monitor

Not covered lines

Lines 74-117 are not covered by tests

Check warning on line 145 in src/main/java/edu/hm/hafner/util/LineRangeList.java

See this annotation in the file changed.

@github-actions github-actions / Quality Monitor

Not covered line

Line 145 is not covered by tests

Check warning on line 166 in src/main/java/edu/hm/hafner/util/LineRangeList.java

See this annotation in the file changed.

@github-actions github-actions / Quality Monitor

Not covered lines

Lines 165-166 are not covered by tests

Check warning on line 182 in src/main/java/edu/hm/hafner/util/LineRangeList.java

See this annotation in the file changed.

@github-actions github-actions / Quality Monitor

Not covered lines

Lines 181-182 are not covered by tests

Check warning on line 199 in src/main/java/edu/hm/hafner/util/LineRangeList.java

See this annotation in the file changed.

@github-actions github-actions / Quality Monitor

Not covered lines

Lines 193-199 are not covered by tests

Check warning on line 232 in src/main/java/edu/hm/hafner/util/LineRangeList.java

See this annotation in the file changed.

@github-actions github-actions / Quality Monitor

Not covered line

Line 232 is not covered by tests

Check warning on line 255 in src/main/java/edu/hm/hafner/util/LineRangeList.java

See this annotation in the file changed.

@github-actions github-actions / Quality Monitor

Not covered lines

Lines 253-255 are not covered by tests

Check warning on line 275 in src/main/java/edu/hm/hafner/util/LineRangeList.java

See this annotation in the file changed.

@github-actions github-actions / Quality Monitor

Not covered line

Line 275 is not covered by tests

Check warning on line 286 in src/main/java/edu/hm/hafner/util/LineRangeList.java

See this annotation in the file changed.

@github-actions github-actions / Quality Monitor

Not covered line

Line 286 is not covered by tests

Check warning on line 366 in src/main/java/edu/hm/hafner/util/LineRangeList.java

See this annotation in the file changed.

@github-actions github-actions / Quality Monitor

Not covered lines

Lines 361-366 are not covered by tests

Check warning on line 405 in src/main/java/edu/hm/hafner/util/LineRangeList.java

See this annotation in the file changed.

@github-actions github-actions / Quality Monitor

Not covered lines

Lines 404-405 are not covered by tests

Check warning on line 79 in src/main/java/edu/hm/hafner/util/Ensure.java

See this annotation in the file changed.

@github-actions github-actions / Quality Monitor

Not covered line

Line 79 is not covered by tests

Check warning on line 155 in src/main/java/edu/hm/hafner/util/Ensure.java

See this annotation in the file changed.

@github-actions github-actions / Quality Monitor

Not covered lines

Lines 139-155 are not covered by tests

Check warning on line 241 in src/main/java/edu/hm/hafner/util/Ensure.java

See this annotation in the file changed.

@github-actions github-actions / Quality Monitor

Not covered line

Line 241 is not covered by tests

Check warning on line 246 in src/main/java/edu/hm/hafner/util/Ensure.java

See this annotation in the file changed.

@github-actions github-actions / Quality Monitor

Not covered line

Line 246 is not covered by tests

Check warning on line 303 in src/main/java/edu/hm/hafner/util/Ensure.java

See this annotation in the file changed.

@github-actions github-actions / Quality Monitor

Not covered line

Line 303 is not covered by tests

Check warning on line 340 in src/main/java/edu/hm/hafner/util/Ensure.java

See this annotation in the file changed.

@github-actions github-actions / Quality Monitor

Not covered line

Line 340 is not covered by tests

Check warning on line 390 in src/main/java/edu/hm/hafner/util/Ensure.java

See this annotation in the file changed.

@github-actions github-actions / Quality Monitor

Not covered line

Line 390 is not covered by tests

Check warning on line 395 in src/main/java/edu/hm/hafner/util/Ensure.java

See this annotation in the file changed.

@github-actions github-actions / Quality Monitor

Not covered line

Line 395 is not covered by tests

Check warning on line 444 in src/main/java/edu/hm/hafner/util/Ensure.java

See this annotation in the file changed.

@github-actions github-actions / Quality Monitor

Not covered line

Line 444 is not covered by tests

Check warning on line 476 in src/main/java/edu/hm/hafner/util/Ensure.java

See this annotation in the file changed.

@github-actions github-actions / Quality Monitor

Not covered line

Line 476 is not covered by tests

Check warning on line 483 in src/main/java/edu/hm/hafner/util/Ensure.java

See this annotation in the file changed.

@github-actions github-actions / Quality Monitor

Not covered line

Line 483 is not covered by tests

Check warning on line 556 in src/main/java/edu/hm/hafner/util/Ensure.java

See this annotation in the file changed.

@github-actions github-actions / Quality Monitor

Not covered line

Line 556 is not covered by tests

Check warning on line 561 in src/main/java/edu/hm/hafner/util/Ensure.java

See this annotation in the file changed.

@github-actions github-actions / Quality Monitor

Not covered line

Line 561 is not covered by tests

Check warning on line 571 in src/main/java/edu/hm/hafner/util/Ensure.java

See this annotation in the file changed.

@github-actions github-actions / Quality Monitor

Not covered line

Line 571 is not covered by tests