Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add formatter-maven-plugin to ensure file are well formatted. #1281

Merged
merged 8 commits into from
Jul 13, 2022

Conversation

sbernard31
Copy link
Contributor

@sbernard31 sbernard31 commented Jul 12, 2022

formatter-maven-plugin allow to check code is well formatted with :

mvn formatter:validate

Code can be formatted with :

mvn formatter:format

The code format validation will be automatically done during build, when mvn clean install is called.

About "removing trailing spaces at end of the line" :
formatter-maven-plugin has an removeTrailingWhitespace option to handle it but only available since 2.17 which is not compatible with java8.
So waiting, I use maven-checkstyle-plugin to check this. (We will use checkstyle later for more than that)

All those will be automatically check on new PR using github actions. Errors will be reported like that : sbernard31#12

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.

1 participant