Skip to content

Conversation

@MartinWheelerMT
Copy link
Collaborator

@MartinWheelerMT MartinWheelerMT commented May 22, 2025

This is the second 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 [FinalClass] CheckStyle issues (Class '' should be declared as final.)
  • Address [VisibilityModifier] CheckStyle issues (Variable '' must be private and have accessor methods.)
  • Address [Indentation] CheckStyle issues ('method def' child has incorrect indentation level *, expected level should *.)
  • Address [ParameterNumber] CheckStyle issues (More than 7 parameters found.)
  • Address [MagicNumber] CheckStyle issues (* is a magic number.)

This introduces the following changes:

  • Remove now unneeded test config class
  • Change test classes using parameter construction to use the configuration properties class instead and set the values
  • Update mesh config to use configuration properties
  • Changed TimeStamp creation in tests to parse ISO date string as this is recognized by CheckStyle as a valid format not magic numbers.
  • Add EdifactAddressPart enumerated class as these indices are required across multiple person classes.

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

@MartinWheelerMT MartinWheelerMT enabled auto-merge (squash) May 22, 2025 15:34
@github-actions
Copy link

github-actions bot commented May 22, 2025

Images built and published to ECR using a Build Id of PR-89-8c287d9

…Name>' must be private and have accessor methods.)
…orrect indentation level *, expected level should *.)
… found.)

* Remove now unneeded test config class
* Change test classes using parameter construction to use the configuration properties class instead and set the values
* Update mesh config to use configuration properties
* Changed TimeStamp creation in tests to parse ISO date string as this is recognized by CheckStyle as a valid format not magic numbers.
* Add `EdifactAddressPart` enumerated class as these indices are required across multiple person classes.
…d have been `2020-06-10T14:38:00` when converting from `ZonedDateTime.of(2020, 6, 10, 14, 38, 00, 0, TimestampService.UK_ZONE)`
@MartinWheelerMT MartinWheelerMT merged commit 0294c7d into develop May 23, 2025
6 checks passed
@MartinWheelerMT MartinWheelerMT deleted the checkstyle-fixes-2 branch May 23, 2025 11:01
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