Skip to content

Conversation

@MartinWheelerMT
Copy link
Collaborator

@MartinWheelerMT MartinWheelerMT commented May 21, 2025

This is the first pull request containing fixes to issues raised by CheckStyle.
These need to be resolved before we can add CheckStyle to the Github Actions pipeline.

This covers the following rule fixes:

  • Address checkstyle [FinalClass] issues (Class should be declared as final.)
  • Address checkstyle [MethodName] issues (Name must match pattern .)
  • Address checkstyle [ModifierOrder] issues ( modifier out of order with JLS suggestions.)
  • Address checkstyle [LineLength] issues (Line is longer than 140 character).
  • Address [WhitespaceAfter / WhitespaceAround] checkstyle issues (if is not followed by whitespace.)
  • Address [WhitespaceAround] checkstyle issues ( is not <preceded with / followed by> whitespace.)
  • Address [UnusedImports] checkstyle issues. (Unused Import.)
  • Address [RedundantModifier] CheckStyle issues (Redundant modifier.)
  • Address [LocalVariableName] Checkstyle issues (Name must match pattern '^([a-z][a-zA-Z0-9]*|_)$'.)

It is easiest to review this PR on a commit by commit basis, as each issue is addressed in each commit.

MartinWheelerMT and others added 16 commits May 19, 2025 16:01
* Update gradle resources to version `8.0.0`
* Breaking model changes now means that the `Parameter.getParameter(name)` now returns a `Type` which cannot now be cast to a `StringType`. We can work around this by finding the `ParametersParameterComponent` manually and then casting it to retrieve the value.
* Due to Parameter changes in the latest version, there is now a slightly different error phrasing in the error returned when a parameter is missing or empty.  Integration tests have been updated to reflect this.
adjust modifiers to private
…preceded with / followed by> whitespace.)

* Address [IndentationLevel] checkstyle issues
…Name>` must match pattern '^([a-z][a-zA-Z0-9]*|_)$'.)

* Address [MemberName] Checkstyle issues (Name `<LocalVariableName>` must match pattern '^([a-z][a-zA-Z0-9]*|_)$'.)
Base automatically changed from update-hapi-fhir-r4-to-8.0.0 to develop May 21, 2025 14:48
@github-actions
Copy link

Images built and published to ECR using a Build Id of PR-81-03a04c7

@MartinWheelerMT MartinWheelerMT marked this pull request as ready for review May 21, 2025 15:26
@MartinWheelerMT MartinWheelerMT merged commit 4de3f64 into develop May 21, 2025
6 checks passed
@MartinWheelerMT MartinWheelerMT deleted the checkstyle-fixes branch May 21, 2025 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants