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
1
vote
2 answers

How can a disabled SonarLint rule be re-enabled in IntelliJ?

I disabled a SonarLint rule in IntelliJ, and then decided that it was a mistake. I disabled the rule using the popup in the editor: What is the easiest and safest way to re-enable the rule? The file sonarlint.xml in ~/Library/Application…
Helge
  • 145
  • 9
1
vote
1 answer

SonarLint intellij plugin SonarTS Server Error With Node

I am trying to bind a sonarqube server to the sonarlint plugin in intellij to pull in the ruleset in sonarqube to show me issues inside of intellij. For some Reason when I scan the file with sonarlint it shows no errors but in the sonarqube.com the…
1
vote
1 answer

How to fix SonarLint: Refactor this code to use the more specialised Functional Interface 'BinaryOperator'?

So im learning on how to use Lambda in Java and got the problem, that Sonar Lint is saying i should refactor the code to use the more specialised functional interface. public float durchschnitt(float zahl1, float zahl2) { BiFunction
hallo545401
  • 115
  • 13
1
vote
0 answers

How to get SonarLint issue stats in IntelliJ

I ran the SonarLint plugin for IntelliJ on all files using the "Analyze all project files" option. Now, I see the total number of issues and the total number of files. But, the issues are not categorized. So, I don't know how many are Blockers,…
Horizon
  • 291
  • 4
  • 14
1
vote
1 answer

SonarQube doesn't work with Intellij Community 2019.2

I'm using SonarLint 4.1.1.3345 with IntelliJ Community 2019.2 version by binding project to our SonarQube (with SonarJava 5.3 (build 13828)installed) server. However, I got error with below stack trace from SonarLint log: Java Main Files AST scan 60…
morse
  • 19
  • 3
1
vote
2 answers

Exception during setting up SonarLint in IntelliJ

I am using IntelliJ (v2018.1.2) and trying to get the SonarLint (3.3.0.2482) plugin to work. When I select Configure SonarLint on the SonarLint panel and click Configure Servers... after checking Enable binding to remote SonarQube server it does…
AHalbert
  • 316
  • 5
  • 23
1
vote
1 answer

How can I run all sonar rules on intellij

We are using sonarqube version 6.7. I would like to execute all sonar bugs and vulnerability java rules with blocker and critical severity locally on my Intellij Idea. I want to run these rules on multiple IDEA projects that are configured in my…
Andy Dufresne
  • 6,022
  • 7
  • 63
  • 113
1
vote
1 answer

SonarLint quick find Critical issues

In SonarLint for IntelliJ IDEA, on the Project files tab, selecting All project files as Scope, how can I locate Critical or Blocker issues quickly?
1
vote
0 answers

SonarLint 3.0 fails in connecting remote sonarqube 6.5 in intellij

I have installed the sonar lint plugin in intelliJ and trying to connect to remote sonarQube by configuring the url, username and password. Connection is failed. After seeing the intellij logs caused by: javax.net.ssl.SSLPeerUnverifiedException:…
1
vote
2 answers

SonarLint doesn't use SonarQube server rules that come from a plugin

I've configured a server binding between SonarQube and Intellij and it's working fine on "usual" rules. I tested it: I changed the severity of a JavaScript rule in the quality profile of the project in SonarQube, updated the binding in Intellij, and…
Zoette
  • 1,241
  • 2
  • 18
  • 49
1
vote
0 answers

SonarQube won't find every rule violations

I'm using SonarQube 6.3.1 with default profile Sonar way. I have the newest SonarJava plugin installed (4.8.0.9441). I can see that the rule SQL binding mechanisms should be used is activated. I have installed SonarLint 2.9.0 plugin for Intellij…
pzeszko
  • 1,989
  • 18
  • 29
1
vote
1 answer

SonarLint IDEA plugin not in sync even in Connected Mode

I am using SonarLint for Intellij 2.0, It's connected to my own SonarQube server v5.4 with no issues reported by the plugin when going into Connected Mode. It seems not to be in sync with my server rules. Found those mentioned in the doc for Java…
1
vote
1 answer

Analyze code with SonarLint for IntelliJ

i have installed latest SonarLint version 2 for IntelliJ and configure it to work with my SonarQube server version 5.2. i also bind SonarLint to my project in SonarQube. When i'm trying to run analysis for one file or for all project, i'm getting…
Idan Lesh
  • 33
  • 1
  • 4
1
vote
1 answer

Sonarqube SonarLint Customisation

I am interested in customising SonarLint on IntelliJ, I am guessing it's possible via the sonarlint.xml file.
0
votes
1 answer

Reduce cognitive Complexity of a method from 26 to 15

I have the following code: private void generateKeyList(String pdm, List uKs, List pKs) { if (pKs == null && uKs == null) return; JsonObject concepts = getConcepts(pdm); …
pensee
  • 375
  • 1
  • 10