Skip to content

spring boot with IT test #9

spring boot with IT test

spring boot with IT test #9

Triggered via pull request September 19, 2025 15:45
Status Success
Total duration 16s
Artifacts 1

code-analysis.yml

on: pull_request
pmd-analysis
11s
pmd-analysis
Fit to window
Zoom out
Zoom in

Annotations

6 warnings
Local variable 'r' could be declared final: src/main/java/uk/gov/hmcts/cp/config/RequestContextFilter.java#L26
A local variable assigned only once can be declared final. LocalVariableCouldBeFinal (Priority: 3, Ruleset: Code Style) https://docs.pmd-code.org/snapshot/pmd_rules_java_codestyle.html#localvariablecouldbefinal
Avoid variables with short names like r: src/main/java/uk/gov/hmcts/cp/config/RequestContextFilter.java#L26
Fields, local variables, enum constant names or parameter names that are very short are not helpful to the reader. ShortVariable (Priority: 3, Ruleset: Code Style) https://docs.pmd-code.org/snapshot/pmd_rules_java_codestyle.html#shortvariable
Parameter 'chain' is not assigned and could be declared final: src/main/java/uk/gov/hmcts/cp/config/RequestContextFilter.java#L23
Reports method and constructor parameters that can be made final because they are never reassigned within the body of the method. This rule ignores unused parameters so as not to overlap with the rule {% rule java/bestpractices/UnusedFormalParameter %}. It will also ignore the parameters of abstract methods. MethodArgumentCouldBeFinal (Priority: 3, Ruleset: Code Style) https://docs.pmd-code.org/snapshot/pmd_rules_java_codestyle.html#methodargumentcouldbefinal
Parameter 'res' is not assigned and could be declared final: src/main/java/uk/gov/hmcts/cp/config/RequestContextFilter.java#L23
Reports method and constructor parameters that can be made final because they are never reassigned within the body of the method. This rule ignores unused parameters so as not to overlap with the rule {% rule java/bestpractices/UnusedFormalParameter %}. It will also ignore the parameters of abstract methods. MethodArgumentCouldBeFinal (Priority: 3, Ruleset: Code Style) https://docs.pmd-code.org/snapshot/pmd_rules_java_codestyle.html#methodargumentcouldbefinal
Parameter 'req' is not assigned and could be declared final: src/main/java/uk/gov/hmcts/cp/config/RequestContextFilter.java#L23
Reports method and constructor parameters that can be made final because they are never reassigned within the body of the method. This rule ignores unused parameters so as not to overlap with the rule {% rule java/bestpractices/UnusedFormalParameter %}. It will also ignore the parameters of abstract methods. MethodArgumentCouldBeFinal (Priority: 3, Ruleset: Code Style) https://docs.pmd-code.org/snapshot/pmd_rules_java_codestyle.html#methodargumentcouldbefinal
Unused import 'jakarta.servlet.*': src/main/java/uk/gov/hmcts/cp/config/RequestContextFilter.java#L3
Reports import statements that can be removed. They are either unused, duplicated, or the members they import are already implicitly in scope, because they're in java.lang, or the current package. If some imports cannot be resolved, for instance because you run PMD with an incomplete auxiliary classpath, some imports may be conservatively marked as used even if they're not to avoid false positives. UnnecessaryImport (Priority: 4, Ruleset: Code Style) https://docs.pmd-code.org/snapshot/pmd_rules_java_codestyle.html#unnecessaryimport

Artifacts

Produced during runtime
Name Size Digest
PMD Report Expired
1.39 KB
sha256:db72f9339c152ca1f2f6cd0bdb3e765dec3d000c671f70bab006b08d0d9a3840