-
Notifications
You must be signed in to change notification settings - Fork 18
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
[MPOM-349] Apply spotless to check/reformat code + poms #82
Conversation
LGTM but if we move to spotless. I would remove |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some nits, otherwise+1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see #82 (comment)
@olamy Checkstyle checks method length, file length, qualifier order, parameter numbers, field/method ordering, etc... Those won't be checked by pure code style validation. I don't really see the value for removing those checks. |
ah right sorry. nothing really urgent as long as it's in sync. |
I've disabled the checkstyle checks that could conflict with the ones checked by spotless, so what you see is expected. The remaining checkstyle checks should be related to non stylistic issues: naming, ordering, javadoc, method/file length, modifiers ordering, inner assignment, magic numbers, etc... So those checks can not really be fixed without refactoring the code. Makes more sense ? |
Yes, the problem is that I was fearing a bit removing those checks from |
pom.xml
Outdated
<dependency> | ||
<groupId>org.apache.maven.shared</groupId> | ||
<artifactId>maven-shared-resources</artifactId> | ||
<version>5-SNAPSHOT</version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should use release version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Argh, well spotted. I think it may be easier to put the removal of the related check styles in the checkstyle rules that maven-shared-resources
provides then. I'll raise a PR there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JIRA issue: https://issues.apache.org/jira/browse/MPOM-349
Depends on apache/maven-shared-resources#5
Discussed on
The PR includes the following changes: