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

SLVS-1559 Embed Enterprise dotnet analyzer #5787

Conversation

georgii-borovinskikh-sonarsource
Copy link
Contributor

@georgii-borovinskikh-sonarsource georgii-borovinskikh-sonarsource commented Oct 29, 2024

@georgii-borovinskikh-sonarsource georgii-borovinskikh-sonarsource changed the title SLVS-1559 SLVS-1559 Embed Enterprise dotnet analyzer Oct 30, 2024
@georgii-borovinskikh-sonarsource georgii-borovinskikh-sonarsource marked this pull request as ready for review October 30, 2024 13:49
@@ -43,8 +43,8 @@ public static string GetPluginKey(this Language language) =>
{
Language.C or Language.CPP => "cpp",
Language.JS or Language.TS or Language.CSS => "javascript",
Language.CS => "csharp",
Language.VBNET => "vbnet",
Language.CS => "csharpenterprise",

Choose a reason for hiding this comment

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

We might need to adapt also the code here:

"SonarAnalyzer.CSharp" => $"{SonarRuleRepoKeys.CSharpRules}:{errorCode}",

Choose a reason for hiding this comment

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

And enhance the test:

[DataRow("S666", "csharpsquid", "S666", "SonarAnalyzer.CSharp", null)]

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, rule ids are the same for both plugins

Choose a reason for hiding this comment

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

I am not talking about the rule id. In the ErrorListHelper we have a switch statement for the "buildTool".

image

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, that thing. They broke it in one of the VS updates, so we no longer rely on it. I will see if I need to update this for backwards compatibility

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Copy link
Contributor

Choose a reason for hiding this comment

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

You missed to rename the interface "IEmbeddedRoslynAnalyzersLocator" to "IEmbeddedDotnetAnalyzersLocator"

@georgii-borovinskikh-sonarsource
Copy link
Contributor Author

You missed to rename the interface "IEmbeddedRoslynAnalyzersLocator" to "IEmbeddedDotnetAnalyzersLocator"

Why didn't it do it automatically....

Copy link

sonarcloud bot commented Oct 31, 2024

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.

2 participants