-
Notifications
You must be signed in to change notification settings - Fork 77
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
SonarLint for Visual Studio 2017 plugin does not respect shared imports #658
Comments
SonarLint VS plugin also can't update |
@t03apt agreed, SLVS doesn't work well if you have manually configured your solution. However, we might be able to do a better job of detecting that a project is already configured and so not prompt to update. Also, as of v4 SonarLint for Visual Studio won't add the NuGet package references to every project, Instead, it relies on the analyzers embedded in the VSIX, so that should be one less problem. |
FYI I've created #790 to track one of the specific issues raised in this ticket. That bug will be fixed in the next version of SLVS. |
FYI I've added a separate issue about adding unconditional ruleset property references: #805 |
SonarLint for Visual Studio 2017 does not work well with shared imports.
I am using Directory.Build.props to import many code analyzers to all projects.
A custom .ruleset file is also specified there.
Here I am importing the other .ruleset generated by the SonarLint plugin.
SonarLint VS plugin does not recognize these shared imports.
When I click on Update in 'Test Explorer - Sonar Qube' window, it always creates needles rulesets for each projects. For example: \ClassLibrary1\ClassLibrary1.ruleset.
It also inserts needless PropertyGroups to .csproj files like
Note: I removed .sonarlint\TestSonarlint.slconfig from the example repository because it has some confidential information.
The text was updated successfully, but these errors were encountered: