What problem does it solve?
FE Java code contributions to Apache Doris fail the Maven build when they violate Checkstyle rules, and developers often struggle to interpret violation messages, locate the right configuration files, and apply the correct fixes before committing.
Core Features & Use Cases
- Checkstyle Execution Guidance: Run style checks standalone via
mvn checkstyle:check -pl fe-core or as part of the full FE build.
- Violation Interpretation and Fixes: Map common violations (RegexpHeader, UnusedImports, LineLength, IllegalImport, FileTabCharacter) to concrete fixes.
- Configuration Reference: Locate and understand checkstyle.xml, suppressions.xml, import-control.xml, and the IntelliJ formatter scheme.
- Use Case: Before committing a change to the FE module, run the checkstyle goal, read the reported file and line violations, apply the documented fixes such as adding the Apache license header or removing shaded imports, and re-run to verify a clean build.
Quick Start
Check my FE Java changes for Checkstyle violations and help me fix any reported style issues before I commit.