Questions tagged [sonarlint-vs]

SonarLint for Visual Studio is an extension that provides on-the-fly feedback to developers on new bugs and quality issues injected into their code.

SonarLint for Visual Studio is an extension that provides on-the-fly feedback to developers on new bugs and quality issues injected into their code.

More can be found at http://www.sonarlint.org/visualstudio/index.html

© 2008-2015, SonarSource S.A, Switzerland

67 questions
10
votes
1 answer

Can I configure the used ruleset for SonarLint

Can I disable / enable the set of rules that are shown by SonarLint for VS? How? A similar question was already asked in Is there some graphical way to create my own configuration file on SonarLint? but I wasn't able to follow the answer, i.e. did…
the_jov
  • 185
  • 1
  • 2
  • 8
8
votes
2 answers

How to ignore Sonar rule to specific line of code in C#?

I use SonarLint. I want the sonar test not to be performed for a specific line. I used // NOSONAR but it didn't work. Does not specify the error number. The error still appears in SonarLint when I use //NOSONAR. But in the main project (SonarQube)…
uyusuk
  • 311
  • 1
  • 2
  • 15
8
votes
2 answers

Does SonarLint provide any advantage over SonarAnalyzer.CSharp

On the SonarAnalyzer.CSharp Nuget Package it has the Description: Analyzers which spot bugs and code smells in your code. This package is best used together with SonarLint for Visual Studio (http://vs.sonarlint.org) and/or the SonarQube platform…
Ayb4btu
  • 3,208
  • 5
  • 30
  • 42
7
votes
1 answer

Show Cognitive Complexity of method in Visual Studio

While using SonarLint and SonarQube in Visual Studio (2017), is there a way to display the Cognitive Complexity of a method anywhere? It is shown when it exceeds the maximum value, but I can't seem to find where I can see it once I'm below the…
Thomas Mulder
  • 740
  • 10
  • 26
6
votes
3 answers

Disable SonarLint analysis during Debug build

Is it possible (in Visual Studio using SonarLint extension) to disable Sonar Analyzers during Debug build, but keep them enabled in Release build? The reason is that connecting the solution to SonarQube has drastically increased the build time.
Narayana
  • 2,654
  • 3
  • 32
  • 32
6
votes
1 answer

Running SonarLint VisualStudio plugin without SonarQube

I have installed SonarLint extension (V 2.8) for Visual Studio 2015. Can the code be analysed locally WITHOUT connecting to a SonarQube server? Do I need to install something else in order to analyze my code (if i dont have SonarQube)? I dont see…
user133441
  • 83
  • 1
  • 6
4
votes
2 answers

SonarLint on Visual Studio does not show warning in Error pane

Visual Studio 2017 (15.7.4) with SonarLint 4.1.0.3539 extension installed. Loaded ASP.NET Core 2.0 solution, which consists of projects, targeting either .Net Framework 4.7.1 or .Net Standard 2.0. Csproj files are new "minimal" version with added…
4
votes
2 answers

Path JRE on VSCode MacOS

What is the correct path of JRE8 that I put in sonarlint.ls.javaHome in VSCode in MacOS so that it works correctly? I have tried this: \\Library\\Internet Plug-Ins\\JavaAppletPlugin.plugin\\Contents\\Home\\bin /Library/Internet\\…
4
votes
2 answers

How to stop SonarLint suppressed warnings from continually reappearing in the VS Errors screen

We're trying SonarLint with VS2015 Enterprise and have an irritating problem which could be a show-stopper unless we resolve it. Core i5 processor, 8GB memory, large SSD, Windows 7 Pro: We have masses of legacy warnings of the same warning code (eg…
haughtonomous
  • 4,602
  • 11
  • 34
  • 52
3
votes
1 answer

how to configure sonarlint in VScode for C language?

I'm practising clean code and I installed sonarlint as a static testing tool to help me write clean code. after installing the editor rises this notification SonarLint is unable to analyze C and C++ file(s) because there is no configured…
ayman magdy
  • 63
  • 1
  • 7
3
votes
1 answer

How to download the latest SonarLint rule set for Visual Studio from SonarQube with customized rule severity settings?

We have SonarQube 5.4 and SonarLint 2.0 setup in "connected mode" for Visual Studio 2015. Everything seems to work fine, except when we customize the severity of rules on the server then those custom severity settings don't show in the Visual…
Kris
  • 33
  • 3
3
votes
2 answers

SonarQube/SonarLint/Visual Studio: Use one ruleset fo all projects in solution

We are currently in the process of evaluating the use of SonarQube/SonarLint for our .NET applications. We are pretty happy with what we've seen so far (and, btw, kudos for bringing SonarQube this far - I've used it a couple of years ago for my PhD…
csoltenborn
  • 1,127
  • 1
  • 12
  • 22
2
votes
0 answers

List of SonarLint rules

I'm using Sonarlint to control bugs/code smells from a list of codes, by extracting each output from VS Code and creating some graphs with Python/Pandas. Even though we can find the rules in https://rules.sonarsource.com/c/RSPEC-3936, I couldn't…
culpinha
  • 55
  • 8
2
votes
0 answers

SonarLint in Visual Studio 2019 throws "PARSING unknown: Support for the experimental syntax 'classProperties' isn't currently enabled"

I want to use SonarLint in Visual Studio to parse Javascript code. I am getting below error in Visual Studio output window when selected SonarLint dopdown. Failed to parse file 'D:\Latest Virtuoso Repo\Accessibility…
Varun V C
  • 21
  • 3
2
votes
1 answer

SonarLint.xml is added to every VS project? Where can I read about it?

When I integrated SonarLint into my VS solution, I got a SonarLint.xml file ref. for every project. I wonder, how it is used? Can I remove this reference? Couldn't find any documentation about it.
1
2 3 4 5