Skip to content

Commit

Permalink
Partly revert ced2f5a: switch ratchet off by default, but leave the
Browse files Browse the repository at this point in the history
property in place, so it can be enabled on the mvn command line
  • Loading branch information
RKrahl committed Aug 15, 2024
1 parent 179cd56 commit a0848e6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ By default, code checks are disabled for local builds, but enforced in the CI bu
You also can execute the commands manually:
* `mvn spotless:check -Dspotless.check.skip=false` to validate the source files,
* `mvn spotless:apply` to directly change the source files according to the linting.
By default, the linter only checks files that have been changed with respect to the `master` branch. To check all the files, add a `-Dspotless.ratchetFrom=NONE` flag to the manual commands.

### Import order
The import order is also validated and applied by the spotless-maven-plugin. It is defined in the file `.spotless/eclipse-importorder.txt` and referenced in `pom.xml`. It is needed that it has a compatible format like the eclipse built-in import order configuration (better its exported file).
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<project.scm.id>github</project.scm.id>
<spotless.goal>check</spotless.goal>
<spotless.check.skip>true</spotless.check.skip>
<spotless.ratchetFrom>origin/master</spotless.ratchetFrom>
<spotless.ratchetFrom>NONE</spotless.ratchetFrom>
</properties>

<repositories>
Expand Down

0 comments on commit a0848e6

Please sign in to comment.