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

Fix S1144 FP: Nested types decorated with StructLayout attribute #9441

Merged

Conversation

zsolt-kolbay-sonarsource
Copy link
Contributor

@zsolt-kolbay-sonarsource zsolt-kolbay-sonarsource commented Jun 18, 2024

Fixes #9432

@zsolt-kolbay-sonarsource zsolt-kolbay-sonarsource force-pushed the Zsolt/fix-S1144-FP-nested-StructLayout branch from b1ec68c to 8820b50 Compare June 18, 2024 10:15
@zsolt-kolbay-sonarsource zsolt-kolbay-sonarsource force-pushed the Zsolt/fix-S1144-FP-nested-StructLayout branch from 0d9fc26 to 36a5bf5 Compare June 18, 2024 22:02
@@ -54,18 +54,6 @@
"Uri": "https://github.com/SonarSource/sonar-dotnet/blob/master/analyzers/its/Projects/akka.net/src/core/Akka/Event/DeadLetterListener.cs#L255",
"Location": "Line 255 Position 29-37"
},
{
"Id": "S1144",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Both are FPs: private readonly fields inside a type marked with the StructLayout attribute.

Copy link

sonarcloud bot commented Jun 18, 2024

Quality Gate Passed Quality Gate passed for 'Sonar .NET Java Plugin'

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 Jun 18, 2024

Quality Gate Passed Quality Gate passed for 'SonarAnalyzer for .NET'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link
Contributor

@mary-georgiou-sonarsource mary-georgiou-sonarsource left a comment

Choose a reason for hiding this comment

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

LGTM

@mary-georgiou-sonarsource mary-georgiou-sonarsource merged commit f0a203a into master Jun 21, 2024
31 checks passed
@mary-georgiou-sonarsource mary-georgiou-sonarsource deleted the Zsolt/fix-S1144-FP-nested-StructLayout branch June 21, 2024 12:17
@zsolt-kolbay-sonarsource zsolt-kolbay-sonarsource removed this from the 9.28 milestone Jun 24, 2024
@zsolt-kolbay-sonarsource
Copy link
Contributor Author

Peach validation was successful: ~50 FP cases were eliminated.

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.

Fix S1144 FP: Unused fields in class with StructLayout when struct is in deep hierarchy class
2 participants