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

Suppresses several instances of javaarchitecture:S7027 #1920

Merged
merged 1 commit into from
Oct 11, 2024

Conversation

mpeels
Copy link
Collaborator

@mpeels mpeels commented Oct 11, 2024

Description

Sonar's new rule javaarchitecture:S7027 is not great. It flags the following scenarios I consider false positives:

  1. Bi-directional mappings in @Entitys
  2. Static variable references
  3. Sealed interfaces using permits
  4. @EntityListeners

This PR suppresses several of these.

@mpeels mpeels requested a review from stevegsa October 11, 2024 15:46
Copy link

Copy link
Collaborator

@adamloup-enquizit adamloup-enquizit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤞

@mpeels mpeels merged commit cb9ff17 into main Oct 11, 2024
2 checks passed
@mpeels mpeels deleted the sonar-false-positives branch October 11, 2024 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants