Skip to content

Enforce code style and format as part of the build process #343

@akafredperry

Description

@akafredperry

Is your feature request related to a problem? Please describe.

Its desirable for the code to have single style / format e,g, indentation, import policy and going forward this makes reviewing PR easier.
This should apply to java code but also maven poms.

Describe the solution you'd like

Add spotless plugin to the pom such that maven validate will fail if any files break the rules
Configure with eclipse engine formatter rules (so we can adjust)
This plugin support fixing the code
Amend README to explain how to config the same rules in the IDE

Describe alternatives you've considered

spotless with default google rules - this is not configurable at all
checkstyle plugin - but this doesn't support xml files or provide a goal for fixing

Additional context

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions