SonarSource / sonar-dotnet

Code analyzer for C# and VB.NET projects
https://redirect.sonarsource.com/plugins/csharp.html
GNU Lesser General Public License v3.0
770 stars 226 forks source link

Update S4143: add a message on secondary locations #3683

Open nicolas-harraudeau-sonarsource opened 3 years ago

nicolas-harraudeau-sonarsource commented 3 years ago

RSPEC-4143 creates a secondary location on the first assignment. This location can be quite far from the primary location and developers will expect to navigate to it in SonarLint. Thus we need to add a message to this secondary location.

The secondary location message is already provided in the RSPEC.

nicolas-harraudeau-sonarsource commented 3 years ago

For now this is a nice to have as SonarLint for Visual Studio does not support secondary locations on dotnet issues.