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
Fix S3993 FP: Allow abstract attributes not to decorate Attribute usage #8898
Conversation
Hi @Corniel, I think the following action from the Building, Testing and Debugging the .NET Analyzer page should help:
So it should be as easy as removing the file, and no further configuration on JFrog should be required. |
@antonioaversa It does the trick. |
There was a problem hiding this 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.
analyzers/src/SonarAnalyzer.CSharp/Rules/RequireAttributeUsageAttribute.cs
Outdated
Show resolved
Hide resolved
analyzers/src/SonarAnalyzer.CSharp/Rules/RequireAttributeUsageAttribute.cs
Outdated
Show resolved
Hide resolved
analyzers/src/SonarAnalyzer.CSharp/Rules/RequireAttributeUsageAttribute.cs
Show resolved
Hide resolved
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Quality Gate passedIssues Measures |
Quality Gate passedIssues Measures |
@Corniel All good, the PR is merged and it's going to make it for the next release. Thanks for this contribution! |
Peach validation: |
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.