Skip to content

Merge pull request #323 from uhafner/error-messages #349

Merge pull request #323 from uhafner/error-messages

Merge pull request #323 from uhafner/error-messages #349

Triggered via push March 8, 2024 12:43
Status Success
Total duration 2m 15s
Artifacts

codeql.yml

on: push
Matrix: Analyze code
Fit to window
Zoom out
Zoom in

Annotations

112 warnings
PMD: AvoidLiteralsInIfCondition: src/main/java/edu/hm/hafner/grading/ScoreMarkdown.java#L153
Avoid using Literals in Conditional Statements.
SpotBugs: NP_NULL_PARAM_DEREF: src/main/java/edu/hm/hafner/grading/CoverageScore.java#L259
Null passed for non-null parameter of new CoverageScore(String, String, CoverageConfiguration, Node, Metric) in edu.hm.hafner.grading.CoverageScore$CoverageScoreBuilder.build()
SpotBugs: BC_UNCONFIRMED_CAST_OF_RETURN_VALUE: src/main/java/edu/hm/hafner/grading/JacksonFacade.java#L30
Unchecked/unconfirmed cast from com.fasterxml.jackson.databind.ObjectMapper to com.fasterxml.jackson.databind.json.JsonMapper of return value in new edu.hm.hafner.grading.JacksonFacade()
SpotBugs: VA_FORMAT_STRING_USES_NEWLINE: src/main/java/edu/hm/hafner/grading/ScoreMarkdown.java#L56
Format string should use %n rather than \n in edu.hm.hafner.grading.ScoreMarkdown.getPercentageImage(String, int)
SpotBugs: VA_FORMAT_STRING_USES_NEWLINE: src/main/java/edu/hm/hafner/grading/TestMarkdown.java#L105
Format string should use %n rather than \n in edu.hm.hafner.grading.TestMarkdown.renderFailure(TestCase)
SpotBugs: SE_TRANSIENT_FIELD_NOT_RESTORED: src/main/java/edu/hm/hafner/grading/TestScore.java#L0
The field edu.hm.hafner.grading.TestScore.report is transient but isn't set by deserialization
Not covered lines: src/main/java/edu/hm/hafner/grading/AggregatedScore.java#L348
Lines 348-375 are not covered by tests
Not covered line: src/main/java/edu/hm/hafner/grading/CoverageScore.java#L46
Line 46 is not covered by tests
Not covered lines: src/main/java/edu/hm/hafner/grading/TruncatedString.java#L259
Lines 259-260 are not covered by tests
Not covered lines: src/main/java/edu/hm/hafner/grading/CommentBuilder.java#L32
Lines 32-240 are not covered by tests
Not covered line: src/main/java/edu/hm/hafner/grading/GradingReport.java#L58
Line 58 is not covered by tests
Not covered lines: src/main/java/edu/hm/hafner/grading/ReportFinder.java#L41
Lines 41-42 are not covered by tests
Not covered lines: src/main/java/edu/hm/hafner/grading/ReportFinder.java#L56
Lines 56-59 are not covered by tests
Not covered lines: src/main/java/edu/hm/hafner/grading/ReportFinder.java#L73
Lines 73-74 are not covered by tests
Not covered line: src/main/java/edu/hm/hafner/grading/Configuration.java#L38
Line 38 is not covered by tests
Not covered line: src/main/java/edu/hm/hafner/grading/Configuration.java#L135
Line 135 is not covered by tests
Not covered line: src/main/java/edu/hm/hafner/grading/Score.java#L129
Line 129 is not covered by tests
Not covered line: src/main/java/edu/hm/hafner/grading/Score.java#L132
Line 132 is not covered by tests
Not covered line: src/main/java/edu/hm/hafner/grading/Score.java#L138
Line 138 is not covered by tests
Not covered line: src/main/java/edu/hm/hafner/grading/Score.java#L144
Line 144 is not covered by tests
Not covered line: src/main/java/edu/hm/hafner/grading/ScoreMarkdown.java#L54
Line 54 is not covered by tests
Not covered lines: src/main/java/edu/hm/hafner/grading/AutoGradingRunner.java#L32
Lines 32-192 are not covered by tests
Not covered line: src/main/java/edu/hm/hafner/grading/TestMarkdown.java#L121
Line 121 is not covered by tests
Not covered lines: src/main/java/edu/hm/hafner/grading/JacksonFacade.java#L47
Lines 47-71 are not covered by tests
Not covered lines: src/main/java/edu/hm/hafner/grading/JacksonFacade.java#L91
Lines 91-93 are not covered by tests
Not covered lines: src/main/java/edu/hm/hafner/grading/JacksonFacade.java#L109
Lines 109-139 are not covered by tests
Partially covered line: src/main/java/edu/hm/hafner/grading/AggregatedScore.java#L278
Line 278 is only partially covered, one branch is missing
Partially covered line: src/main/java/edu/hm/hafner/grading/AggregatedScore.java#L380
Line 380 is only partially covered, one branch is missing
Partially covered line: src/main/java/edu/hm/hafner/grading/AggregatedScore.java#L384
Line 384 is only partially covered, one branch is missing
Partially covered line: src/main/java/edu/hm/hafner/grading/AggregatedScore.java#L385
Line 385 is only partially covered, one branch is missing
Partially covered line: src/main/java/edu/hm/hafner/grading/AggregatedScore.java#L386
Line 386 is only partially covered, one branch is missing
Partially covered line: src/main/java/edu/hm/hafner/grading/AggregatedScore.java#L516
Line 516 is only partially covered, one branch is missing
Partially covered line: src/main/java/edu/hm/hafner/grading/AggregatedScore.java#L519
Line 519 is only partially covered, one branch is missing
Partially covered line: src/main/java/edu/hm/hafner/grading/AggregatedScore.java#L522
Line 522 is only partially covered, one branch is missing
Partially covered line: src/main/java/edu/hm/hafner/grading/AggregatedScore.java#L525
Line 525 is only partially covered, one branch is missing
Partially covered line: src/main/java/edu/hm/hafner/grading/CoverageConfiguration.java#L52
Line 52 is only partially covered, one branch is missing
Partially covered line: src/main/java/edu/hm/hafner/grading/CoverageConfiguration.java#L61
Line 61 is only partially covered, one branch is missing
Partially covered line: src/main/java/edu/hm/hafner/grading/TestConfiguration.java#L52
Line 52 is only partially covered, one branch is missing
Partially covered line: src/main/java/edu/hm/hafner/grading/CoverageScore.java#L60
Line 60 is only partially covered, one branch is missing
Partially covered line: src/main/java/edu/hm/hafner/grading/CoverageScore.java#L255
Line 255 is only partially covered, one branch is missing
Partially covered line: src/main/java/edu/hm/hafner/grading/CoverageScore.java#L258
Line 258 is only partially covered, 2 branches are missing
Partially covered line: src/main/java/edu/hm/hafner/grading/ReportFinder.java#L40
Line 40 is only partially covered, one branch is missing
Partially covered line: src/main/java/edu/hm/hafner/grading/TestScore.java#L298
Line 298 is only partially covered, one branch is missing
Partially covered line: src/main/java/edu/hm/hafner/grading/Configuration.java#L37
Line 37 is only partially covered, one branch is missing
Partially covered line: src/main/java/edu/hm/hafner/grading/Configuration.java#L134
Line 134 is only partially covered, one branch is missing
Partially covered line: src/main/java/edu/hm/hafner/grading/Configuration.java#L137
Line 137 is only partially covered, one branch is missing
Partially covered line: src/main/java/edu/hm/hafner/grading/ToolConfiguration.java#L110
Line 110 is only partially covered, one branch is missing
Partially covered line: src/main/java/edu/hm/hafner/grading/ToolConfiguration.java#L111
Line 111 is only partially covered, one branch is missing
Partially covered line: src/main/java/edu/hm/hafner/grading/ToolConfiguration.java#L112
Line 112 is only partially covered, one branch is missing
Partially covered line: src/main/java/edu/hm/hafner/grading/ToolConfiguration.java#L113
Line 113 is only partially covered, one branch is missing
Partially covered line: src/main/java/edu/hm/hafner/grading/ToolConfiguration.java#L114
Line 114 is only partially covered, one branch is missing
Partially covered line: src/main/java/edu/hm/hafner/grading/AnalysisConfiguration.java#L55
Line 55 is only partially covered, 3 branches are missing
Partially covered line: src/main/java/edu/hm/hafner/grading/Score.java#L128
Line 128 is only partially covered, one branch is missing
Partially covered line: src/main/java/edu/hm/hafner/grading/Score.java#L131
Line 131 is only partially covered, 2 branches are missing
Partially covered line: src/main/java/edu/hm/hafner/grading/Score.java#L137
Line 137 is only partially covered, one branch is missing
Partially covered line: src/main/java/edu/hm/hafner/grading/Score.java#L143
Line 143 is only partially covered, one branch is missing
Partially covered line: src/main/java/edu/hm/hafner/grading/ScoreMarkdown.java#L53
Line 53 is only partially covered, 2 branches are missing
Partially covered line: src/main/java/edu/hm/hafner/grading/TestMarkdown.java#L120
Line 120 is only partially covered, one branch is missing
Partially covered line: src/main/java/edu/hm/hafner/grading/FileSystemCoverageReportFactory.java#L39
Line 39 is only partially covered, one branch is missing
Partially covered line: src/main/java/edu/hm/hafner/grading/FileSystemCoverageReportFactory.java#L45
Line 45 is only partially covered, one branch is missing
Partially covered line: src/main/java/edu/hm/hafner/grading/LogHandler.java#L55
Line 55 is only partially covered, one branch is missing
Partially covered line: src/main/java/edu/hm/hafner/grading/LogHandler.java#L63
Line 63 is only partially covered, one branch is missing
Mutation survived: src/main/java/edu/hm/hafner/grading/AggregatedScore.java#L50
One mutation survived in line 50 (NullReturnValsMutator)
Mutation survived: src/main/java/edu/hm/hafner/grading/AggregatedScore.java#L74
One mutation survived in line 74 (EmptyObjectReturnValsMutator)
Mutation survived: src/main/java/edu/hm/hafner/grading/AggregatedScore.java#L78
One mutation survived in line 78 (EmptyObjectReturnValsMutator)
Mutation survived: src/main/java/edu/hm/hafner/grading/AggregatedScore.java#L104
One mutation survived in line 104 (PrimitiveReturnsMutator)
Mutation survived: src/main/java/edu/hm/hafner/grading/AggregatedScore.java#L181
One mutation survived in line 181 (BooleanTrueReturnValsMutator)
Mutation survived: src/main/java/edu/hm/hafner/grading/AggregatedScore.java#L194
One mutation survived in line 194 (BooleanTrueReturnValsMutator)
Mutation survived: src/main/java/edu/hm/hafner/grading/AggregatedScore.java#L251
One mutation survived in line 251 (PrimitiveReturnsMutator)
Mutation survived: src/main/java/edu/hm/hafner/grading/AggregatedScore.java#L265
One mutation survived in line 265 (BooleanFalseReturnValsMutator)
Mutation survived: src/main/java/edu/hm/hafner/grading/AggregatedScore.java#L274
One mutation survived in line 274 (BooleanFalseReturnValsMutator)
Mutation survived: src/main/java/edu/hm/hafner/grading/AggregatedScore.java#L404
One mutation survived in line 404 (VoidMethodCallMutator)
Mutation survived: src/main/java/edu/hm/hafner/grading/AggregatedScore.java#L438
One mutation survived in line 438 (VoidMethodCallMutator)
Mutation survived: src/main/java/edu/hm/hafner/grading/AggregatedScore.java#L472
One mutation survived in line 472 (VoidMethodCallMutator)
Mutation survived: src/main/java/edu/hm/hafner/grading/TestScore.java#L125
2 mutations survived in line 125
Mutation survived: src/main/java/edu/hm/hafner/grading/TestScore.java#L148
One mutation survived in line 148 (BooleanTrueReturnValsMutator)
Mutation survived: src/main/java/edu/hm/hafner/grading/TestScore.java#L161
One mutation survived in line 161 (ConditionalsBoundaryMutator)
Mutation survived: src/main/java/edu/hm/hafner/grading/TestScore.java#L283
One mutation survived in line 283 (VoidMethodCallMutator)
Mutation survived: src/main/java/edu/hm/hafner/grading/TestScore.java#L284
One mutation survived in line 284 (VoidMethodCallMutator)
Mutation survived: src/main/java/edu/hm/hafner/grading/TestScore.java#L295
One mutation survived in line 295 (VoidMethodCallMutator)
Mutation survived: src/main/java/edu/hm/hafner/grading/AnalysisScore.java#L235
One mutation survived in line 235 (VoidMethodCallMutator)
Mutation survived: src/main/java/edu/hm/hafner/grading/AnalysisScore.java#L236
One mutation survived in line 236 (VoidMethodCallMutator)
Mutation survived: src/main/java/edu/hm/hafner/grading/AnalysisScore.java#L262
One mutation survived in line 262 (VoidMethodCallMutator)
Mutation survived: src/main/java/edu/hm/hafner/grading/ScoreMarkdown.java#L184
One mutation survived in line 184 (EmptyObjectReturnValsMutator)
Mutation survived: src/main/java/edu/hm/hafner/grading/Score.java#L34
One mutation survived in line 34 (VoidMethodCallMutator)
Mutation survived: src/main/java/edu/hm/hafner/grading/Score.java#L35
One mutation survived in line 35 (VoidMethodCallMutator)
Mutation survived: src/main/java/edu/hm/hafner/grading/Score.java#L116
One mutation survived in line 116 (PrimitiveReturnsMutator)
Mutation survived: src/main/java/edu/hm/hafner/grading/CoverageScore.java#L49
One mutation survived in line 49 (VoidMethodCallMutator)
Mutation survived: src/main/java/edu/hm/hafner/grading/CoverageScore.java#L243
One mutation survived in line 243 (VoidMethodCallMutator)
Mutation survived: src/main/java/edu/hm/hafner/grading/CoverageScore.java#L244
One mutation survived in line 244 (VoidMethodCallMutator)
Mutation survived: src/main/java/edu/hm/hafner/grading/CoverageScore.java#L255
One mutation survived in line 255 (VoidMethodCallMutator)
Mutation survived: src/main/java/edu/hm/hafner/grading/GradingReport.java#L176
One mutation survived in line 176 (EmptyObjectReturnValsMutator)
Mutation survived: src/main/java/edu/hm/hafner/grading/GradingReport.java#L182
One mutation survived in line 182 (EmptyObjectReturnValsMutator)
Mutation survived: src/main/java/edu/hm/hafner/grading/AnalysisConfiguration.java#L55
One mutation survived in line 55 (ConditionalsBoundaryMutator)
Mutation survived: src/main/java/edu/hm/hafner/grading/TestMarkdown.java#L57
One mutation survived in line 57 (ConditionalsBoundaryMutator)
Mutation survived: src/main/java/edu/hm/hafner/grading/TruncatedString.java#L205
One mutation survived in line 205 (NullReturnValsMutator)
Mutation survived: src/main/java/edu/hm/hafner/grading/TruncatedString.java#L218
One mutation survived in line 218 (ConditionalsBoundaryMutator)
Mutation survived: src/main/java/edu/hm/hafner/grading/TruncatedString.java#L239
One mutation survived in line 239 (NullReturnValsMutator)
Mutation survived: src/main/java/edu/hm/hafner/grading/TruncatedString.java#L267
One mutation survived in line 267 (ConditionalsBoundaryMutator)
Mutation survived: src/main/java/edu/hm/hafner/grading/TruncatedString.java#L277
One mutation survived in line 277 (ConditionalsBoundaryMutator)
Mutation survived: src/main/java/edu/hm/hafner/grading/LogHandler.java#L55
One mutation survived in line 55 (ConditionalsBoundaryMutator)
Mutation survived: src/main/java/edu/hm/hafner/grading/LogHandler.java#L63
One mutation survived in line 63 (ConditionalsBoundaryMutator)
Mutation survived: src/main/java/edu/hm/hafner/grading/ReportFinder.java#L40
One mutation survived in line 40 (NegateConditionalsMutator)
Mutation survived: src/main/java/edu/hm/hafner/grading/AnalysisMarkdown.java#L54
One mutation survived in line 54 (ConditionalsBoundaryMutator)
Mutation survived: src/main/java/edu/hm/hafner/grading/ToolConfiguration.java#L75
One mutation survived in line 75 (EmptyObjectReturnValsMutator)