Questions tagged [sonarlint]

SonarLint is an extension to IDEs (such as VS, Eclipse or IntelliJ) that provides on-the-fly feedback to developers on new bugs and quality issues found in their code, using Static Code Analysis.

SonarLint is an extension to IDEs (such as VS, VS Code, Eclipse, PyCharm, etc) that provides on-the-fly feedback to developers on new bugs and quality issues found in their code, using Static Code Analysis.

© 2008-2018, SonarSource S.A, Switzerland

Currently available:

693 questions
10
votes
3 answers

Analyse Typescript with SonarQube

I'm using node_modules/codelyzer to analyze my source code Typescript. I define manually rules in tslint.json file. But it is possible to analyze Typescript with SonarQube?
mahdi kallel
  • 453
  • 1
  • 6
  • 15
10
votes
2 answers

SonarLint hint hiding Eclipse tooltip

I'm using SonarLint 1.3 in Eclipse Mars. My problem is when there's an SonarLint issue it prevents every other tooltip from appearing. Example: as you can see tooltip for Hashtable is not shown because of SonarLint hint. Is there a way to show both…
Alex
  • 789
  • 1
  • 12
  • 29
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
9
votes
1 answer

How to add certificates to SonarLint in Eclipse

A certificate is required to connect my SonarQube server. I have installed the SonarLint plugin, but it does not have any option to add certificates to connect my SonarQube server. It has only URL, username , password options. Is there any way to…
Débora
  • 5,816
  • 28
  • 99
  • 171
9
votes
1 answer

SonarLint is super slow

I'm using the new eclipse plugin SonarLint in a large Eclipse RCP project. It is extremely slow. Analyzing all plugin projects (over 310) lasts several hours. SonarLint creates a log for every project build, that looks like this: Starting…
Adam Taras
  • 1,403
  • 1
  • 13
  • 15
9
votes
1 answer

How to disable SonarLint for test projects

I installed SonarLint in VS 2015 and it looks like a great extension with lots of potential. At the moment the extension is also analysing my test projects and giving warnings about this. How can I disable inspection of specific (test)…
Niek Jannink
  • 1,056
  • 2
  • 12
  • 24
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

How to include a file in sonar lint for analysis if it was excluded?

I clicked on "exclude" within the sonarlint menuin eclise for a file. Now i can't figure out how to enable it? the sonarlint analyze option is greyed out for the file now. I tried looking for excluded files at Preferences > SonarLink > File…
tweeper
  • 352
  • 1
  • 4
  • 16
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
8
votes
1 answer

Unable to configure SonarLint plugin on Idea IntelliJ

I'm trying to configure the SonarLint plugin (Version - 3.2.0.2350) on Idea Intellij (Ultimate Edition. Version: 2017.3.4, Build: 173.4548.28) but I get an error when trying to Update binding - **Analyzers not loaded**. The following plugins do not…
Arpit
  • 323
  • 4
  • 13
8
votes
1 answer

SonarLint not working for coverage and duplications?

I am using Sonar-Lint as my static code analysis plugin in intellij. When I run that after setting configurations, it can fetch rules form the server and show issues. But still it can't clearly indicate code-duplication and coverage. Can anyone tell…
Supun Wijerathne
  • 11,964
  • 10
  • 61
  • 87
8
votes
1 answer

How does one mark issues as false positives in SonarLint?

I'm experimenting with SonarLint for IntelliJ, but I'm a bit wary of it. It doesn't seem to be offering anything more than IntelliJ already does, and there's no way to even look at what rules it is offering, let alone change them. Now, maybe it does…
8
votes
1 answer

Is critical SonarLint issue S1166 in my Java code a false positive or not?

SonarLint 1.0.0 for Eclipse flags a critical issue in my code and I can't see why and how to fix it. It really looks like a false positive to me—or am I missing something? import org.apache.log4j.Logger; [...] public final class Foo { private…
anothernode
  • 5,100
  • 13
  • 43
  • 62
8
votes
2 answers

Exclude JS files from SonarLint

I use SonarLint in my Eclipse to analyze JAVA web project. How to exclude js files from SonarLint analysis? It is because when I open js file, SonarLint starts to slow down the Eclipse performance. Used version: SonarLint for Eclipse …
Valijon
  • 12,667
  • 4
  • 34
  • 67
7
votes
3 answers

SonarLint throws IllegalStateException -> Failed to read local issue store index

I'm currently working in my Job with Eclipse and Java. We should use SonarLint to get some cleaner code and 'till yesterday everything was fine. But yesterday morning, when I opened Eclipse, SonarLint throw me the following errormessage. I've…
Daniel
  • 83
  • 1
  • 5
1 2
3
46 47