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 S1862: add a message on secondary locations #3676

Open nicolas-harraudeau-sonarsource opened 3 years ago

nicolas-harraudeau-sonarsource commented 3 years ago

RSPEC-1862 creates a secondary location on the first branch duplicate. 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 messages to these secondary locations.

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.