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

How to run webMethods package from designer to trigger SonarQube

I am trying to run the webMethods package from designer to trigger SonarQube. SonarLint is allowing to run a project but not a webMethods package. For now, I am placing Sonar scanner properties file inside the package and triggering sonar scanner…
Sowndarya
  • 59
  • 8
1
vote
1 answer

How to solve the "Unable to update binding" error in SONAR LINT?

Scenario : Recently I have installed SONAR lint v3.4 on Eclipse Oxygen.2 Release (4.7.2 I have SONAR qube server running and I was successfully able to connect SONAR lint to it. Problem : However after the connection when I try to take updates from…
varunsinghal65
  • 536
  • 1
  • 5
  • 20
1
vote
0 answers

SonarLint in Eclipse (connected mode) does not show any issues when SonarQube does

I have a set of projects in my Eclipse workspace bound to SonarQube modules that are part of a project which (according to SonarQube) uses a custom Quality Profile for Java that we created locally. When I open (in Eclipse) a Java source file that…
Two Trucks
  • 21
  • 5
1
vote
1 answer

Sonarlint not syncing with SonarQube

Using Sonarlint 3.2 in Eclipse with SonarQube 5.6.6. I have successfully bound my project(s) in Eclipse to SonarQube. However, Sonarlint is reporting no issues, while issues are reported in SonarQube. I have been unsuccesfull in resolving the…
Mark
  • 43
  • 7
1
vote
2 answers

Sonar Lint Eclipse Issue

I'm using Eclipse Neon and SonarQube 5.6.6(LTS). I've install sonarLint version 3.1.0. Following are my question. In SonarLint whether there is an option to analyze the entire project? I can't able to find such option. The issue showing in Eclipse…
sangeetha kannan
  • 125
  • 1
  • 11
1
vote
3 answers

What's wrong with throwing multiple checked exceptions in Java?

Consider the Java code snippet below: public T create(Class clazz) throws InstantiationException, IllegalAccessException { return clazz.newInstance(); } This in Eclipse (Neon.2, JDK 8) with SonarLint performing static code analysis. It…
andand
  • 17,134
  • 11
  • 53
  • 79
1
vote
1 answer

SonarQube (SonarLint /Sonar-JAVA) Redundant casts should not be used

I just stepped over some old code and did a SonarLint analysis. I cannot paste the code here but basically it is similar to: Object test = new Object[]{"1"}; System.out.println(((Object[])test)[0]); This very simple example works, but SonarLint…
Tester
  • 173
  • 1
  • 10
1
vote
1 answer

how to make SonarLint check for number of code line in java method

I am new to sonarLint I have tried it out and I am asking myself, if this tool can check the number of codeline of java method. It should print an error, if a method has more codeline than for example 80 lines. Is this possible?
Ronald
  • 2,721
  • 8
  • 33
  • 44
1
vote
0 answers

Sonarlint 2.3 eclipse issues shown on parent project

I used Sonarlint 2.2.1 with Eclipse Luna, it was working quite well but since i've upgraded to Sonarlint 2.3, nothing works like before. I use Sonarlint as a standalone eclipse plugin without a SonarQube server. I work on a project with this kind of…
Rothnak
  • 11
  • 3
1
vote
0 answers

Sonarqube plugin for Eclipse 4.4.0 (Luna) + Java 1.6_0111 not working

I am new to Sonarqube. I tried to install Sonarqube Eclipse plugin. Installation was successful and restarted Eclipse. But, I could not see Sonar options or view. I tried both Sonar lint and this http://downloads.sonarsource.com/eclipse/eclipse/…
Ganesh MN
  • 23
  • 2
  • 5
1
vote
1 answer

SonarQube error: "Unable to create symbol table for "

consider the following class: public class SqAnalysisTest { public void method () { Collection readers = new ArrayList<> (); readers.add (SqAnalysisTest::readString); } @FunctionalInterface public static interface Reader { …
JohannesR
  • 1,646
  • 1
  • 12
  • 12
1
vote
1 answer

What needs to be done before using connected mode and custome rules for SonarLint

I'm using SonarLint for eclipse. I've successfully connected it to the SonarQube server. (when I deactivate a rule on the server, I can see that the issues that in sonarLint issues window disappear.) However, the custom rules I developed can't be…
1
vote
2 answers

SonarLint Eclipse connecting to SonarQube server gives "No storage for server 'sonar'. Please update."

My company upgraded to SonarQube 5.3. This requires changing from the SonarQube plugin for Eclipse to SonarLint. I regret that upgrade because my project quality profile contains 494 rules and only 12 are from Squid, so we have a massive project to…
Sinc
  • 553
  • 1
  • 8
  • 31
1
vote
1 answer

Why is sonarLint saying 'Close this "Stream"' on Stream.of() but not on .stream()

I am using the sonarLint plugin in eclipse On this line i get 'Close this "Stream"' Stream.concat(Stream.of("a"), Stream.of("b")).collect(Collectors.toSet()); but not on Arrays.asList("a", "b").stream().collect(Collectors.toSet()); I don't…
tomdp
  • 79
  • 6
1
vote
1 answer

Failed to execute goal org.sonarsource.scanner.maven:sonar-maven- >plugin:3.0.1:sonar (default-cli)

Hi everyone this is my first question here on StackOverflow, I hope someone of you could help me in this problem: I'm trying to configure my java project on Eclipse (Mars 8.2) for SonarQube detection but when I run my configuration the output notify…