Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add spring-javaformat checkstyle and formatting #8945

Closed
philwebb opened this issue Aug 6, 2020 · 1 comment
Closed

Add spring-javaformat checkstyle and formatting #8945

philwebb opened this issue Aug 6, 2020 · 1 comment
Assignees
Labels
status: duplicate A duplicate of another issue type: enhancement A general enhancement

Comments

@philwebb
Copy link
Member

philwebb commented Aug 6, 2020

https://github.com/spring-io/spring-javaformat/ provides checkstyle and automatic source formatting for Spring Project. This issue is to discuss how it might be applied to spring-security.

@philwebb philwebb added status: waiting-for-triage An issue we've not yet triaged type: enhancement A general enhancement labels Aug 6, 2020
rwinch pushed a commit that referenced this issue Aug 24, 2020
Manually polish `spring-security-rsocket` following the formatting
and checkstyle fixes.

Issue gh-8945
rwinch pushed a commit that referenced this issue Aug 24, 2020
Manually polish `spring-security-saml2` following the formatting
and checkstyle fixes.

Issue gh-8945
rwinch pushed a commit that referenced this issue Aug 24, 2020
Manually polish `spring-security-taglibs` following the formatting
and checkstyle fixes.

Issue gh-8945
rwinch pushed a commit that referenced this issue Aug 24, 2020
Manually polish `spring-security-test` following the formatting
and checkstyle fixes.

Issue gh-8945
rwinch pushed a commit that referenced this issue Aug 24, 2020
Manually polish `spring-security-web` following the formatting
and checkstyle fixes.

Issue gh-8945
rwinch pushed a commit that referenced this issue Aug 24, 2020
Remove all blank lines from test code so that test methods are
visually grouped together. This generally helps to make the test
classes easer to scan, however, the "given" / "when" / "then"
blocks used by some tests are now not as easy to discern.

Issue gh-8945
rwinch pushed a commit that referenced this issue Aug 24, 2020
Fix a few tests that were accidentally importing incorrect AssertJ
classes.

Issue gh-8945
rwinch pushed a commit that referenced this issue Aug 24, 2020
Update tests that use `assertThat((Object) ...)` to use the convenience
`assertThatObject(...)` method instead.

Issue gh-8945
rwinch pushed a commit that referenced this issue Aug 24, 2020
Update a couple of tests to use the more traditional `@Mock` annotation
placement.

Issue gh-8945
rwinch pushed a commit that referenced this issue Aug 24, 2020
Fix `DefaultSavedRequestMixinTests` so that `assertThat` is used rather
than Java's `assert` keyword.

Issue gh-8945
rwinch pushed a commit that referenced this issue Aug 24, 2020
Consistently use `assertThatExceptionOfType(...).isThrownBy(...)`
rather than `assertThatCode` or `assertThatThrownBy`. This aligns with
Spring Boot and Spring Cloud. It also allows the convenience
`assertThatIllegalArgument` and `assertThatIllegalState` methods to
be used.

Issue gh-8945
rwinch added a commit that referenced this issue Aug 24, 2020
rwinch added a commit that referenced this issue Aug 24, 2020
rwinch added a commit that referenced this issue Aug 24, 2020
rwinch added a commit that referenced this issue Aug 24, 2020
rwinch added a commit that referenced this issue Aug 24, 2020
rwinch added a commit that referenced this issue Aug 24, 2020
rwinch added a commit that referenced this issue Aug 24, 2020
rwinch added a commit that referenced this issue Aug 24, 2020
rwinch added a commit that referenced this issue Aug 24, 2020
rwinch added a commit that referenced this issue Aug 24, 2020
rwinch added a commit that referenced this issue Aug 24, 2020
@rwinch
Copy link
Member

rwinch commented Sep 9, 2020

Closing in favor of gh-8946

@rwinch rwinch closed this as completed Sep 9, 2020
@rwinch rwinch added status: duplicate A duplicate of another issue and removed status: waiting-for-triage An issue we've not yet triaged labels Sep 9, 2020
@rwinch rwinch self-assigned this Sep 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate A duplicate of another issue type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants