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

New Rule T0009: Order the same member kind by its accessibility #9136

Merged
merged 1 commit into from Apr 24, 2024

Conversation

pavel-mikula-sonarsource
Copy link
Contributor

Fixes #9045

Copy link

sonarcloud bot commented Apr 18, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

Copy link

sonarcloud bot commented Apr 18, 2024

Copy link
Contributor

@sebastien-marichal sebastien-marichal left a comment

Choose a reason for hiding this comment

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

LGTM!
I left a non-blocking comment.

Comment on lines +23 to +32
private int private1;

protected int protectedVariant1; // Noncompliant {{Move this protected Field above the private ones.}}
private protected int protectedVariant2; // Noncompliant {{Move this protected Field above the private ones.}}
protected internal int protectedVariant3; // Noncompliant {{Move this protected Field above the private ones.}}

public int publicOrInternal1; // Noncompliant {{Move this public Field above the private ones.}}
internal int publicOrInternal2; // Noncompliant {{Move this internal Field above the private ones.}}
public int publicOrInternal3; // Noncompliant {{Move this public Field above the private ones.}}
internal int publicOrInternal4; // Noncompliant {{Move this internal Field above the private ones.}}
Copy link
Contributor

Choose a reason for hiding this comment

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

I was confused by why all the issues had the same message before I realized they were all talking about the first field.

If not too much effort, we could add a secondary location.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@pavel-mikula-sonarsource pavel-mikula-sonarsource merged commit 96b281e into master Apr 24, 2024
32 checks passed
@pavel-mikula-sonarsource pavel-mikula-sonarsource deleted the Pavel/T0009 branch April 24, 2024 08:14
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.

New Rule T0009: Order the same member kind by its accessibility
2 participants