Questions tagged [sonarlint-intellij]

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

SonarLint for IntelliJ is an module 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/intellij/index.html

© 2008-2015, SonarSource S.A, Switzerland

61 questions
4
votes
0 answers

Hide, sort or group issues

How can I hide SonarLint issues? Is it possible to group and sort issues somehow? I'm using 1.5.0 version of plugin Thanks
tillias
  • 1,035
  • 2
  • 12
  • 30
3
votes
0 answers

why sonarlint shows different issues than sonarqube server

I have connected intellij sonarlint with sonarqube server successfully as discripted here: File -> Settings -> Other Settings -> SonarLint General Settings Click on the green + in "SonarQube servers" : Enter a name (ex : SonarQube / localhost) …
Ronald
  • 2,721
  • 8
  • 33
  • 44
3
votes
1 answer

Exclude generated classes from sonarlint analysis

When I run the sonarlint analysis, unwanted generated classes are also analyzed (R.java, classes generated by Dagger, etc.). It doesn't happen when I run the Android Studio Analyze -> Inspect code.... How can I specify a specific scope for the…
3
votes
0 answers

False-positive for SonarQube rule "squid:UnusedPrivateMethod" when private method invoked from "unused" public method?

I have a public method foo() and a private method bar() in the same class. foo() is the only caller but it clearly invokes bar() but IntelliJ shows a violation of this rule, squid:UnusedPrivateMethod, for the method declaration of bar(): Remove…
Alix
  • 2,630
  • 30
  • 72
3
votes
0 answers

SonarLint in IntelliJ (and Maven) detects false positives depending on the classpath

We have a custom library which provides a method Strings.isFilled which ensures that a given string is neither null nor empty. (https://github.com/scireum/sirius-kernel/blob/master/src/main/java/sirius/kernel/commons/Strings.java#L65) If we now have…
Andreas Haufler
  • 401
  • 4
  • 9
3
votes
2 answers

Connected Mode on SonarLint v2.0 on IntelliJ not working?

SonarLint v2.0 for IntelliJ is out now, and has this "connect to sonar server" feature, but even so, it seems it isn't in sync with my server rules. http://www.sonarlint.org/intellij/#Connected Is it working for someone? I'm I missing a step? Or…
shoguren
  • 138
  • 1
  • 9
2
votes
2 answers

Sonarlint sentinel value fake positive

I have the next code snippet, where the sonarlint tool says that my boolean variable sentinel always evaluates to true, and the sentinel = true it's an useless asingment. import static java.lang.System.*; public class Sentinel { private static…
Alex Vergara
  • 1,766
  • 1
  • 10
  • 29
2
votes
0 answers

How to modify sonarlint rules in Intellij configuration

I want to disable some of the sonarlint rules on my Intellij for my team. I know one way to do it is File -> Settings -> Other Settings -> SonarLint General Settings , and then checking/un-checking each rule one by one, but I want to do it in one…
Shubham Pandey
  • 1,788
  • 2
  • 18
  • 24
2
votes
1 answer

Finding new Sonar issues with SonarLint for IntelliJ

Is there any way to retrieve only the new Sonar issues brought by a SCM change with the SonarLint plugin for IntelliJ? Thank you.
Wenneguen
  • 3,196
  • 3
  • 13
  • 23
2
votes
2 answers

SonarLint "Connection refused" to SonarQube 6.7

Since upgrading SonarQube from 6.6 to 6.7 I'm facing the Problem, that I can't connect SonarLint for IntelliJ with the SonarQube Server. I need to configure a corporate proxy but the configuration worked with SonarQube 6.6 and hitting "Test…
2
votes
1 answer

How to limit the permissions of a token?

My developers are making use of the IntelliJ SonarLint plugin to connect to our SonarQube server and perform local analysis To connect to the server they need to provide a token, so I want to create a single token which can be shared across all…
MandyW
  • 1,117
  • 3
  • 14
  • 23
2
votes
0 answers

SonarLint can't connect to remote server

I use Intellij Idea and i want to use SonarLint for detecting bugs and quality issues. When i tried to connect SonarLint to my corporate Sonar server i got following error Failed to connect to the server. Please check the configuration. Excerpt…
iChrome
  • 443
  • 1
  • 6
  • 24
2
votes
0 answers

Running sonarLint analysis for a directory?

I am using Sonar-lint for IntelliJ Idea as a static code analysis tool. From the Sonar-Lint tool window appearing bottom of Intellij, I can run the analysis for current file or currently opened files. Is there a way to run that for whole project?…
Supun Wijerathne
  • 11,964
  • 10
  • 61
  • 87
2
votes
1 answer

SonarQube Intellij Plugin error with SonarQubeMojo

I am having trouble with running the intellij SonarQube plugin. After hooking up to the my sonar server, I can see the different projects that are available to me. I am now attempting to set this up for local analysis. My local analysis script is…
TheBlueMan
  • 316
  • 1
  • 4
  • 27
2
votes
0 answers

Is it possible to use SonarLint in a Gradle multi-project from within IntelliJ?

I have a Gradle multi-project which looks like this: Project A Subproject #1 Subproject #2 Subproject #3 For each sub project there is a corresponding SonarQube project on the central server. Using SonarLint 2.2 for IntelliJ 2016.1.2 I can use…
Mark
  • 414
  • 1
  • 3
  • 9