update project to use docker for integration tests #13
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:703288097c79f92a51a6daeb7345d7b4b86bcbee560b40d3fd432ef68a28818d
|
|