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 S3993 FP: Allow abstract attributes not to decorate Attribute usage #8898

Merged

Conversation

Corniel
Copy link
Contributor

@Corniel Corniel commented Mar 11, 2024

As reported at Sonar Community, Abstract attributes should not report S3993.

Not that due to the latest changes, I can not build Sonar locally, as I have no JFrog account, and I could not find how to set this up in the documentation.

@sebastien-marichal sebastien-marichal changed the title FP S3993: Allow abstract attributes not to decorate Attribute usage Fix S3993 FP: Allow abstract attributes not to decorate Attribute usage Mar 18, 2024
@antonioaversa antonioaversa self-requested a review March 19, 2024 09:56
@antonioaversa
Copy link
Contributor

Not that due to the latest changes, I can not build Sonar locally, as I have no JFrog account, and I could not find how to set this up in the documentation.

Hi @Corniel, I think the following action from the Building, Testing and Debugging the .NET Analyzer page should help:

Before following any of the guides below, if you are external contributor you need to delete analyzers\NuGet.Config.

So it should be as easy as removing the file, and no further configuration on JFrog should be required.
Let me know if that works for you.

@Corniel
Copy link
Contributor Author

Corniel commented Mar 19, 2024

@antonioaversa It does the trick.

Copy link
Contributor

@antonioaversa antonioaversa 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 couple of optional comments to clean variable names in lambda, that pre-existed this PR.

@antonioaversa antonioaversa self-assigned this Mar 19, 2024
@antonioaversa antonioaversa added Type: Bug Exceptions and blocking issues during analysis. Area: C# C# rules related issues. labels Mar 19, 2024
@antonioaversa antonioaversa added this to the 9.23 milestone Mar 19, 2024
@antonioaversa antonioaversa added this to Review in progress in Best Kanban Mar 19, 2024
@antonioaversa antonioaversa added Type: False Positive Rule IS triggered when it shouldn't be. and removed Type: Bug Exceptions and blocking issues during analysis. labels Mar 19, 2024
@antonioaversa
Copy link
Contributor

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@antonioaversa
Copy link
Contributor

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link

sonarcloud bot commented Mar 19, 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 Mar 19, 2024

@antonioaversa antonioaversa merged commit e66d1ec into SonarSource:master Mar 20, 2024
25 checks passed
Best Kanban automation moved this from Review in progress to Validate Peach Mar 20, 2024
@antonioaversa
Copy link
Contributor

@Corniel All good, the PR is merged and it's going to make it for the next release. Thanks for this contribution!

@Corniel Corniel deleted the corniel/s3993-abstract-attribute branch March 20, 2024 17:55
@martin-strecker-sonarsource
Copy link
Contributor

Peach validation:
33 Lost issues - all true negatives.

@martin-strecker-sonarsource martin-strecker-sonarsource moved this from Validate Peach to Done in Best Kanban Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: C# C# rules related issues. Type: False Positive Rule IS triggered when it shouldn't be.
Projects
Best Kanban
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants