diff --git a/docs/CONTRIBUTING.md b/docs/CONTRIBUTING.md index 38a52d16..c18cba88 100644 --- a/docs/CONTRIBUTING.md +++ b/docs/CONTRIBUTING.md @@ -317,10 +317,10 @@ This is **critical** for debugging because annotation processing happens inside The project uses [google-java-format](https://github.com/google/google-java-format) for consistent code formatting. -**Automatic formatting** is applied during build via the `fmt-maven-plugin`: +**Formatting is enforced during build**: the `fmt-maven-plugin` runs in `check` mode, so the build fails when sources are not formatted. Format your code before committing: ```bash -# Format code automatically +# Format code automatically (run before committing) mvn fmt:format # Check formatting without modifying files diff --git a/pom.xml b/pom.xml index 08038ab3..27bc1596 100644 --- a/pom.xml +++ b/pom.xml @@ -158,7 +158,7 @@ - format + check