-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
[Feature][style] Replace checkstyle plugin with spotless to automatically fix formatting errors #10963
Comments
Thank you for your feedback, we have received your issue, Please wait patiently for a reply.
|
I agree to replace CheckStyle with Spotless. Resolve format problem of the code as soon as possible |
BTW, we could fix the formatting and style errors incrementally, together with unit tests. See: #10573 |
Some updates, see: #11272 (comment) |
@ruanwenjun have other oppoin |
…11272) * [Feature][style] Add spotless maven plugin for automatic style fix (#10963) * Fix spotless ratchet configuration * Remove license-check and decrease line length threshold value * Update related docs * Remove checkstyle and add pre-commit hook * Test updated pre-commit hook * Replace checkstyle with spotless in CI * Remove reviewdog
* [Feature][style] Add spotless maven plugin for automatic style fix. (apache#11272) * [Feature][style] Add spotless maven plugin for automatic style fix (apache#10963) * Fix spotless ratchet configuration * Remove license-check and decrease line length threshold value * Update related docs * Remove checkstyle and add pre-commit hook * Test updated pre-commit hook * Replace checkstyle with spotless in CI * Remove reviewdog (cherry picked from commit 6a02870) * Cp spotless Co-authored-by: Eric Gao <[email protected]>
Search before asking
Description
spotless
plugin into DS and use it to automatically fix the style.Use case
checkstyle
plugin. However, there are tons of legacy formatting errors in the project every time we build the project. Thus, in practice, some developers tend to use-Dcheckstyle.skip
flag when building the project and this make thestyle check
a little bit awkward.Spotless
overCheckStyle
is in addition to check the formatting of the code it also hasapply
goal that fixes all the style and formatting. WithSpotless
, we could fix the legacy formatting errors once for all and developers could fix new format errors with a single line of commandmvn spotless:apply
.Related issues
No response
Are you willing to submit a PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: