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
3
votes
1 answer

Unable to connect to SonarQube Server using HTTPS in Eclipse Oxygen (SonarLint Plugin)

I followed the steps in the SonarQube docs to allow my SonarQube server to use HTTPS by putting a Proxy behind it: https://docs.sonarqube.org/display/SONAR/Securing+the+Server+Behind+a+Proxy I created an apache server and installed mod_proxy module…
3
votes
1 answer

How to disable a SonarLint rule for the entire project without connecting to a SonarQube server?

I have an Eclipse project and I use SonarLint to find the bugs in it. I've encountered a lot of cases of false-negatives (like squid:S1168) and there isn't really an obvious way to suppress rules like this for the entire project without having to…
Marko Zajc
  • 307
  • 3
  • 14
3
votes
1 answer

How to create SWT browser for SonarLint for Eclipse rule description?

When I try to display SonarLint rule (by right-clicking on issue description and "Rule description"), I have an error on the SonarLint Rule description tab: Unable to create SWT Browser: No more handles [Unknown Mozilla path…
Line
  • 1,529
  • 3
  • 18
  • 42
3
votes
1 answer

Static code analysis for groovy with eclipse

I want to add static code analysis plugin to eclipse (Eclipse Mars 4.6). For that I added sonarlint plugin which contains rules for groovy project as well. But it could not analyse groovy files or can give any suggestions for the same. I searched…
P Punam
  • 151
  • 1
  • 8
3
votes
1 answer

SonarLint synchronization with SonarQube

I have read all of the threads about SonarLint not being in synch with SonarQube, but it's just not clicking. I created a simple Maven project to test SonarLint & SonarQube. I added the sonar-maven-plugin to the project and then ran mvn…
Kev
  • 99
  • 8
3
votes
1 answer

SonarLint Eclipse plugin - purpose of "Issue Locations" and "Rule Description" views

I just downloaded the SonarLint Eclipse plugin and successfully launched an analysis on my projet after configuring my SonarQube server. The "SonarLint Report" and "SonarLint On-The-Fly" are correctly populated. However, the "SonarQube Issue…
3
votes
1 answer

SonarLint is not showing the issues for the external plugin (PMD,FindBug,CheckStyle)

I'm using the SonarLint version as 3.1.0 in eclipse Neon. And SonarQube version as 5.6.6. While analyzing the issue for the project, it is noticed that it is not showing the issues for the external plugin (PMD,FindBug,CheckStyle). From the Sonar…
sangeetha kannan
  • 125
  • 1
  • 11
3
votes
3 answers

How to resolve missing required bundle for SonarLint eclipse

I am having a problem loading SonarLint 2.2.0 in my Eclipse Luna. The official web document says that 2.2.0 version is supported for Eclipse Luna. I also can install SonarLint from Eclipse Marketplace without any problem. But on eclipse restart,…
Mani Rai
  • 665
  • 2
  • 9
  • 22
3
votes
2 answers

SonarLint plugin in Eclipse changes every ".project" file

After installing SonarLint plugin for Eclipse (v2.0), the .project files in the workspace are changed! They are automatically extended by: org.sonarlint.eclipse.core.sonarlintBuilder
andreasgk
  • 673
  • 1
  • 12
  • 30
2
votes
1 answer

Can Ternary operators should not be nested (squid:S3358) be configured

When I have the following code with 2 levels of Ternary operations double amount = isValid ? (isTypeA ? vo.getTypeA() : vo.getTypeB()) : 0; Which Sonar warns about Ternary operators should not be nested (squid:S3358) Just because you can do…
Ori Marko
  • 56,308
  • 23
  • 131
  • 233
2
votes
1 answer

SonarLint Change Allowed Cognitive Complexity

I would like to change the allowed cognitive complexity of a method in SonarLint from the default of 15 to a lower values such as 10. I am using the SonarLint plugin for eclipse. How can this be done?
Dan Grahn
  • 9,044
  • 4
  • 37
  • 74
2
votes
0 answers

Is there a way to tell SonarLint Eclipse to add a project root folder when downloading issues in connected mode?

I'm running SonarLint in connected mode, and it succeeds to download the more general information on rules and issues, e.g /batch/issues?key=MyProject works fine. When I open a specific source file in eclipse, the file gets analyzed correctly…
Hulk
  • 6,399
  • 1
  • 30
  • 52
2
votes
0 answers

Sonarlint for Eclipse C/C++ rule - Make the prototype of this function visible at this point - not working

We are using SonarLint for Eclipse and have some problems with the rule "c:S819 – Make the prototype of this function visible at this point". It seems like SonarLint does not find the paths to our header files, so all prototypes defined in them will…
2
votes
2 answers

Eclipse warning "Replace the type specification in this constructor call with the diamond operator ('<>')" in a Java project

What does Eclipse mean when it asks to Replace the type specification in this constructor call with the diamond operator ('<>'), since the said operator is already there? Then I put the cursor on what is underlined in blue, and press F2 to learn…
KiriSakow
  • 957
  • 1
  • 12
  • 22
2
votes
1 answer

SonarLint plugin in Eclipse not display Error Javadoc

I'm trying to create method without add comment or documentation it, I expected SonarLint would show errors based on rules, but I don't see any errors or warnings. Why?