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

Support mixed scopes in a single analyzer class #5173

Closed
pavel-mikula-sonarsource opened this issue Dec 13, 2021 · 0 comments · Fixed by #5175
Closed

Support mixed scopes in a single analyzer class #5173

pavel-mikula-sonarsource opened this issue Dec 13, 2021 · 0 comments · Fixed by #5175
Assignees
Labels
Type: False Negative Rule is NOT triggered when it should be.
Milestone

Comments

@pavel-mikula-sonarsource
Copy link
Contributor

Since MMF-2297:

  • Main-scope rules should run only on Main code
  • Test-scope rules should run only on Test code
  • All-scope rules should run only on Main code under the Scanner run
  • All-scope rules should run on Main and Test code under NuGet or SonarLint use.

This resolution doesn't work correctly when single analyzer class supports diagnostics for Main code and Test code at the same time.

@pavel-mikula-sonarsource pavel-mikula-sonarsource added this to the 8.34 milestone Dec 13, 2021
@pavel-mikula-sonarsource pavel-mikula-sonarsource changed the title Support mixed scopes in a single class Support mixed scopes in a single analyzer class Dec 13, 2021
@pavel-mikula-sonarsource pavel-mikula-sonarsource added the Type: False Negative Rule is NOT triggered when it should be. label Dec 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: False Negative Rule is NOT triggered when it should be.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants