File tree Expand file tree Collapse file tree 1 file changed +18
-4
lines changed Expand file tree Collapse file tree 1 file changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -59,14 +59,28 @@ Code away...
5959
6060## Formatting rules and style conventions
6161
62- The Hibernate family projects share the same style conventions. You can download the appropriate configuration
63- files for your IDE from [ the IDE codestyles GitHub repository ] ( https://github.com/hibernate/hibernate-ide-codestyles ) .
62+ The project build comes with preconfigured plugins that apply automatic formatting/sorting of imports and
63+ a set of other checks. Running a simple build should automatically apply all the formatting rules and checks:
6464
65- You can very quickly check that you have respected the formatting rules by running Checkstyle:
6665``` shell
67- mvn checkstyle:check
66+ mvn clean verify
6867```
6968
69+ Alternatively, if only applying the formatting is required, you could run the next command:
70+
71+ ``` shell
72+ mvn spotless:apply checkstyle:check
73+ ```
74+
75+ ---
76+ ** NOTE** : running the above command requires the ` org.hibernate.validator:hibernate-validator-build-config `
77+ being available. If it is a first time building the project you may need to execute:
78+ ``` shell
79+ mvn clean install -am -pl build/build-config
80+ ```
81+ ---
82+
83+
7084## Commit
7185
7286* Make commits of logical units.
You can’t perform that action at this time.
0 commit comments