Skip to content

Commit 4703f9c

Browse files
committed
Update format + check command
Issue gh-14575
1 parent ee84d37 commit 4703f9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CONTRIBUTING.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ See https://github.com/spring-projects/spring-security/tree/main#building-from-s
7979

8080
The wiki pages https://github.com/spring-projects/spring-framework/wiki/Code-Style[Code Style] and https://github.com/spring-projects/spring-framework/wiki/IntelliJ-IDEA-Editor-Settings[IntelliJ IDEA Editor Settings] define the source file coding standards we use along with some IDEA editor settings we customize.
8181

82-
To format the code as well as check the style, run `./gradlew format check`.
82+
To format the code as well as check the style, run `./gradlew format && ./gradlew check`.
8383

8484
[[submit-a-pull-request]]
8585
=== Submit a Pull Request
@@ -104,7 +104,7 @@ If this is for an issue, consider a branch name with the issue number, like `gh-
104104
6. [[update-copyright]] In all files you edited, if the copyright header is of the form 2002-20xx, update the final copyright year to the current year.
105105
7. [[add-since]] If on `main`, add `@since` JavaDoc attributes to new public APIs that your PR adds
106106
8. [[change-rnc]] If you are updating the XSD, please instead update the RNC file and then run `./gradlew :spring-security-config:rncToXsd`.
107-
9. [[format-code]] For each commit, build the code using `./gradlew format check`.
107+
9. [[format-code]] For each commit, build the code using `./gradlew format && ./gradlew check`.
108108
This command ensures the code meets most of <<code-style,the style guide>>; a notable exception is import order.
109109
10. [[commit-atomically]] Choose the granularity of your commits consciously and squash commits that represent
110110
multiple edits or corrections of the same logical change.

0 commit comments

Comments
 (0)