-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Removed CheckStyle code formatting plugin #1370
Removed CheckStyle code formatting plugin #1370
Conversation
Can one of the admins verify this patch? |
✅ DCO Check Passed da79ad2f97df83b62bd6ca215100064b72bebeef |
✅ Gradle Wrapper Validation success da79ad2f97df83b62bd6ca215100064b72bebeef |
✅ Gradle Precommit success da79ad2f97df83b62bd6ca215100064b72bebeef |
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.
Between the time that we remove checkstyle and add spotless to the entire repo, would the modules excluded from spotless have no formatting standards?
Good question. Few are already formatted with CheckStyle and Spotless and few are not formatted by any plugins is what I can think of. Once we apply Spotless on all the modules they'll follow https://github.com/opensearch-project/OpenSearch/blob/main/buildSrc/formatterConfig.xml. |
start gradle check |
✅ Gradle Check success da79ad2f97df83b62bd6ca215100064b72bebeef |
Yeah my concern is the new changes in the modules that are excluded and won't have neither checkstyle nor spotless running on them. Otherwise the PR looks fine to me. |
So those modules are already formatted with CheckStyle as far as I know until the time we apply Spotless to them. |
Sorry about repeating this but not sure if I understood correctly. Have we made sure removing checkstyle does not create a gap with no styling checks on some modules which were previously checkstyle based? |
As discussed with @setiah offline. We will be excluding few modules to run CheckStyle and will run Spotless on them to remove the gap of formatting. Let's hold this PR and merge this after all the 74 modules are sync with Spotless. |
✅ Gradle Wrapper Validation success da79ad2f97df83b62bd6ca215100064b72bebeef |
✅ DCO Check Passed da79ad2f97df83b62bd6ca215100064b72bebeef |
✅ Gradle Precommit success da79ad2f97df83b62bd6ca215100064b72bebeef |
Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
da79ad2
to
3e9db70
Compare
✅ Gradle Wrapper Validation success 3e9db70 |
✅ Gradle Precommit success 3e9db70 |
start gradle check |
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.
Changes look good to me!
Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
Signed-off-by: Owais Kazi owaiskazi19@gmail.com
Description
Currently the project has two formatting tools Spotless and CheckStyle. Spotless itself can format the code and check the standard java code using spotlessApply and spotlessJavaCheck respectively. Both the plugins have different configuration for formatting which restrict us to run Spotless on all the subprojects. Removing CheckStyle will help to run a unified formatting on the codebase.
Issues Resolved
#1362
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.