Questions tagged [sonarlint-eclipse]

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

SonarLint for Eclipse 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/eclipse/index.html

© 2008-2015, SonarSource S.A, Switzerland

103 questions
2
votes
1 answer

Eclipse Sonar Lint default profile

I'm using Eclipse with sonar lint and a remote sonar server. I have configured a custom quality profile which I have defined as Default in sonarqube. In eclipse I only configured the sonar server, but no project binding. The last months everything…
Jürgen
  • 146
  • 12
2
votes
1 answer

How to group SonarLint for Eclipse 3.2.0 results by severity (MAJOR, MINOR, CRITICAL)?

How can I group or sort the SonarLint for Eclipse analysis results by severity? I have installed SonarLint For Eclipse plugin version 3.2.0 in Eclipse Java EE IDE for Web Developers version Neon.2 4.6.2. I right-click on an Eclipse project and…
buzz3791
  • 1,683
  • 2
  • 20
  • 38
2
votes
1 answer

SONAR: Replace with lambda with a method reference with a string parameter

List list; //...add something in the list String value = "anything"; boolean b = list.stream().anyMatch( element -> value.startsWith(element)) I get the sonar information about Replace with lambda with a method reference. But I have to…
Nana Ba
  • 87
  • 2
  • 12
2
votes
0 answers

SonarLint: update all bindings issue

Updating all project bindings on the SonarQube server view (by right-clicking and selecting "Update all project bindings") gives the following error: Failed to update binding for 2 project(s) Unable to update binding for project 'GRSP' …
CharlieB
  • 940
  • 7
  • 9
2
votes
2 answers

How to suppress warnings for FIXME comment in Java

I am developing a Java application and Using SonarLint to test the code quality. Sonar shows the error : Take the required action to fix the issue indicated by this comment. For below line of code: // FIXME: temp here until we drop tomee or remove…
abhinav3414
  • 946
  • 3
  • 9
  • 31
2
votes
1 answer

Sonarqube: How to ignore/skip scanning of issues on certain annotation "ex. @generated" in java

We are generating java codes via EMF. We want Sonar to skip issue scanning on the codes with annotations @generated but will scan @generated NOT for both class and method level. Is there a way to do that in SonarQube and SonarLint? Also, can it be…
Lea A
  • 1,511
  • 2
  • 10
  • 9
2
votes
1 answer

SonarLint 2.2.1 Eclipse not catching a majority of issues (unlike examples online)

I want to use the SonarLint plugin for Eclipse. I installed it, but it doesn't seem to be catching everything it should. After installing it, I tried to write code that should trigger SonarLint issues. For example, the picture on the site…
hershicon
  • 31
  • 3
2
votes
1 answer

How to use SonarLint connected mode for custom configured rules in STS

I have a SonarQube server up and running which has custom rules configured which needs to be reflected in SonarLint. I have run a SonarQube scan, and the projects are being shown in https://localhost:9000 UI screen. lets come to the SonarLint.…
Vinoth Kumar
  • 19
  • 1
  • 5
2
votes
1 answer

Can't update data from sonarqube server

When sonarlint eclipse ask me to refresh my sonarqube data (Update all projects binding), I get the following error : Unable to update data from server 'cerbere' Unable to move C:\workspace…
Dominique
  • 87
  • 2
  • 10
2
votes
1 answer

sonarlint(eclipse) not reporting error for my Java custom rule

I have created a sonarqube custom rule for Java. It seems to be working when I check it in the sonarqube server UI. I have configured sonarlint with my eclipse but sonarlint is not reporting any error for my custom rule. How shall I add that, so…
2
votes
6 answers

An internal error occurred during: "Enable SonarLint on all projects". Unable to add builder

When starting Eclipse in a workspace, SonarLint plugin reports the following error: An internal error occurred during: "Enable SonarLint on all projects". Unable to add builder After confirming the errmsg, both Eclipse and SonarLint plugin work…
andreasgk
  • 673
  • 1
  • 12
  • 30
2
votes
1 answer

SonarLint prompt "Close this 'FileReader'", when I close actually closed it in the finally block

When I ananyze some code using sonarlint in eclipse which close the FileReader in the finally block, the sonarlint prompt me that "Close this 'FileReader'" which is generated by the rule "Resources should be closed". Is this a bug from SonarLint?.…
1
vote
0 answers

Viewing the cognitive complexity of all methods in eclipse

Is it possible to view the "Cognitive complexity" for all methods in Eclipse irrespective of whether it exceeds the limit or not using SonarLint plugin One workaround I used was to reduce the limit to 0 in Windows -> Preferences -> SonarLint ->…
1
vote
1 answer

How to check if SonarLint plugin is actually analyzing my code in Eclipse?

I have installed a SonarLint plugin in my Eclipse, and now I am trying to test it on my toy C++ project. I see no errorrs/warnings/alerts about my code, even though I deliberately made it really broken. Is there a way to check or confirm that…
Andrzej
  • 5,027
  • 27
  • 36
1
vote
1 answer

How to serialize a generic class that can be its own type parameter?

EDIT 2 : Problem solved. Props to Joachim Sauer and Viral Lalakia for their answers. Solution : SonarLint won't make a warning if I swap the Comparable and the Serializable for the type T. The warning it gives should be considered a false…