Skip to content

Adding pact verification Test #23

Adding pact verification Test

Adding pact verification Test #23

Triggered via pull request June 25, 2025 10:10
Status Success
Total duration 15s
Artifacts 1

code-analysis.yml

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

Annotations

3 errors and 2 warnings
The final method parameter name 'CourtScheduleResponse' doesn't match '[a-z][a-zA-Z0-9]*': src/main/java/uk/gov/hmcts/cp/repositories/InMemoryCourtScheduleRepositoryImpl.java#L24
Configurable naming conventions for formal parameters of methods and lambdas. This rule reports formal parameters which do not match the regex that applies to their specific kind (e.g. lambda parameter, or final formal parameter). Each regex can be configured through properties. By default this rule uses the standard Java naming convention (Camel case). FormalParameterNamingConventions (Priority: 1, Ruleset: Code Style) https://docs.pmd-code.org/pmd-doc-7.14.0/pmd_rules_java_codestyle.html#formalparameternamingconventions
The final method parameter name 'CourtScheduleResponse' doesn't match '[a-z][a-zA-Z0-9]*': src/main/java/uk/gov/hmcts/cp/repositories/CourtScheduleRepository.java#L11
Configurable naming conventions for formal parameters of methods and lambdas. This rule reports formal parameters which do not match the regex that applies to their specific kind (e.g. lambda parameter, or final formal parameter). Each regex can be configured through properties. By default this rule uses the standard Java naming convention (Camel case). FormalParameterNamingConventions (Priority: 1, Ruleset: Code Style) https://docs.pmd-code.org/pmd-doc-7.14.0/pmd_rules_java_codestyle.html#formalparameternamingconventions
Final parameter in abstract method: src/main/java/uk/gov/hmcts/cp/repositories/CourtScheduleRepository.java#L11
Declaring a method parameter as final for an interface method is useless because the implementation may choose to not respect it. FinalParameterInAbstractMethod (Priority: 1, Ruleset: Code Style) https://docs.pmd-code.org/pmd-doc-7.14.0/pmd_rules_java_codestyle.html#finalparameterinabstractmethod
Local variable 'sittingStartTime' could be declared final: src/main/java/uk/gov/hmcts/cp/repositories/InMemoryCourtScheduleRepositoryImpl.java#L41
A local variable assigned only once can be declared final. LocalVariableCouldBeFinal (Priority: 3, Ruleset: Code Style) https://docs.pmd-code.org/pmd-doc-7.14.0/pmd_rules_java_codestyle.html#localvariablecouldbefinal
Unused import 'org.springframework.context.annotation.Profile': src/main/java/uk/gov/hmcts/cp/repositories/InMemoryCourtScheduleRepositoryImpl.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/pmd-doc-7.14.0/pmd_rules_java_codestyle.html#unnecessaryimport

Artifacts

Produced during runtime
Name Size Digest
PMD Report Expired
1.5 KB
sha256:ea079599e090bd07652d439f5804b169aca71a3724ae1d3548df3c487cc99011