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

Broaden Checkstyle rule for AssertJ assertion enforcement #392

Closed
wants to merge 1 commit into from

Conversation

izeye
Copy link
Contributor

@izeye izeye commented Oct 3, 2023

This PR updates the Checkstyle rule for AssertJ assertion enforcement to include JUnit Jupiter and broaden the scope of org.junit.Assert by removing the ".assert" part.

@sbrannen
Copy link

sbrannen commented Oct 3, 2023

Related to spring-projects/spring-framework#31116

@wilkinsona wilkinsona changed the title Update Checkstyle rule for AssertJ assertion enforcement Broaden Checkstyle rule for AssertJ assertion enforcement Oct 13, 2023
@wilkinsona wilkinsona added this to the 0.0.40 milestone Oct 13, 2023
@wilkinsona
Copy link
Contributor

Thanks very much, @izeye.

I assumed that the intention here was to broaden the enforcement for projects using Spring Java Format. The change as you had made it affected Spring Java Format itself and not the Checkstyle rules that it applies to other projects. I've corrected that in 2909060. Note that I undid your original change as part of this as it caused a build failure due to the blunt regex-based approach matching some code that wasn't actually an import.

Please let me know if I've got this wrong.

@izeye izeye deleted the assertj branch October 13, 2023 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants