Send results to a file

Please provide

  • Operating system: Windows 10
  • SonarLint plugin version:
  • Is connected mode used: No
    • Connected to SonarCloud or SonarQube (and which version):

And a thorough description of the problem / question:

Visual Studio 2019 Version 16.8.2

Is there a way to save the results to a file?

Hey there.

This isn’t possible – the results are available in the IDE as you code, and can’t be saved/exported.

Are you using SonarQube or SonarCloud at all? Using one of these products (along with SonarLint), analysis can be run each time you commit / raise a pull request and have reports available in the web console.

1 Like

Colin, thanks for your reply.

It would be very useful to be able to save the results to a file. One could save the results and consider the issues (which could be numerous) as “acceptable tech debt”, which can be fixed each time sections of the code are touched. As the code base is modified, the tech debt can be reduced.

One nice thing with a result file is that the file can be committed to Git, so when you add new issues, git diff can easily display them. One would commit improvements to the result file, or acceptable new issues.