Skip to content

[Feature][style] Replace checkstyle plugin with spotless to automatically fix formatting errors #10963

@EricGao888

Description

@EricGao888

Search before asking

  • I had searched in the issues and found no similar feature requirement.

Description

Use case

  • At present, DS uses 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 the style check a little bit awkward.
  • Huge advantage of using Spotless over CheckStyle is in addition to check the formatting of the code it also has apply goal that fixes all the style and formatting. With Spotless, we could fix the legacy formatting errors once for all and developers could fix new format errors with a single line of command mvn spotless:apply.

Related issues

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions