Skip to content

build: add spotless, checkstyle, and enforcer plugin configuration#23

Open
wombatu-kun wants to merge 1 commit into
lance-format:mainfrom
wombatu-kun:build/code-style-setup
Open

build: add spotless, checkstyle, and enforcer plugin configuration#23
wombatu-kun wants to merge 1 commit into
lance-format:mainfrom
wombatu-kun:build/code-style-setup

Conversation

@wombatu-kun
Copy link
Copy Markdown

@wombatu-kun wombatu-kun commented Apr 22, 2026

Summary

  • Add checkstyle.xml ported from lance-spark.
  • Add .editorconfig for cross-IDE consistency (UTF-8, LF, 4-space Java,
    2-space XML/YAML, tab Makefile, max_line_length = 100).
  • Wire spotless-maven-plugin 2.43.0 with google-java-format 1.19.2
    (GOOGLE style), importOrder = org.apache.flink,,javax,java,#,
    removeUnusedImports, and the short Apache 2.0 license header.
    Invoked explicitly: mvn spotless:check / mvn spotless:apply.
  • Wire maven-checkstyle-plugin 3.3.1 with configLocation=checkstyle.xml,
    failsOnError=true, violationSeverity=warning. Invoked explicitly:
    mvn checkstyle:check.
  • Wire maven-enforcer-plugin 3.4.1 with requireMavenVersion 3.6.3 and
    banDuplicatePomDependencyVersions, bound to the validate phase.

Spotless and Checkstyle are intentionally not bound to a build phase
in this PR. They will be wired into the validate phase in the follow-up
PR chore: apply initial spotless formatting, which also runs
mvn spotless:apply against the existing 31 .java files. Splitting the
work this way keeps the configuration PR small and reviewable, and the
formatting PR mechanical and trivially reviewable.

@wombatu-kun wombatu-kun force-pushed the build/code-style-setup branch from fd50c7c to 72001b5 Compare May 24, 2026 08:37
@github-actions github-actions Bot added the chore Maintenance and chores label May 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Maintenance and chores

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant