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

Sonar Lint eclipse plugin project report

I have sonar lint eclipse plugin installed on my eclipse. The plugin is working perfectly, however I need to run the sonar checks not only on a single file, but on the whole project. I did my research and I learned that the CLI interface of sonar…
WiredCoder
  • 916
  • 1
  • 11
  • 39
1
vote
1 answer

Sonarqube synchronization error

I have created a custom rule for sonarqube in Java. The rule is created and i can see that in the sonarqube UI. Now the problem is when i try to check that rule from eclipse. I am getting error: :Synchronization issue, has encountered some…
0
votes
0 answers

Exception while configuring sonarlint plugin with connected mode in eclipse

I am trying to install sonar lint plugin in my eclipse and configure it in 'Connected Mode'. The connection to sonarqube server is successful, but when it tries to download plugins from sonarqube server and store it my local storage it throws an…
Karthik
  • 522
  • 3
  • 13
0
votes
1 answer

Error in sonarqube configuration using command prompt

wrapper | --> Wrapper Started as Console wrapper | Launching a JVM... jvm 1 | Error: Could not create the Java Virtual Machine. jvm 1 | Error: A fatal exception has occurred. Program will exit. jvm 1 | Unrecognized option:…
0
votes
2 answers

How To Exclude a specific rule from a specific file in Sonarlint

I am trying to exclude a specific rule from a file in sonarlint, I have multiple java automation projects open in eclipse, and I am wondering if my "Value" is correct on my analyzed property that I have set. (LN_LexisConveyOnline is the name of the…
Blaine
  • 3
  • 1
0
votes
1 answer

What does number in SonarLint actually means?

I am very new to sonarlint, So after installing it and analyzing the file, I have seen a number indications in my code. I searched on google about the same but didn’t find anything. A version of Sonnarlint that I am using is 7.4 on Spring Tool Suite…
iamgul
  • 83
  • 9
0
votes
0 answers

SonarLint Plugin Initialisation Error in Eclipse IDE

I have recently installed SonarLint plugin in Eclipse IDE on one of my workstation. However, while initialising the plugin, I am getting an error Illegal character in path at index 16 because of which the plugin is not working as it fails while…
0
votes
0 answers

How we can Pass multiple argument in sonar Lint

logger.debug("This is completed detail of Shipping" + Price + orderId + ProductId + Country+ deliveryDate); getting the error : "use the built-in formatting to construct this argument" 2nd argument is not in use 3nd argument is not in use 4nd…
Maujood
  • 1
  • 1
  • 5
0
votes
0 answers

Avoiding Sonarlint error efficiently in Java for infinite while loop

I have a RabbitMQ Consumer Java application that keeps on checking for the new message on the queue with a while(true) loop. Is there any solution so I can avoid following Sonalint Blocker bug without suppressing the error: Loops should not be…
0
votes
1 answer

Sonar lint plugin installation failed

I'm using STS 4.12.0.RELEASE and try to install sonar lint 6.1 plugin from eclipse market place. But received java.lang.IllegalStateException: operation plan must be resolved as the attached image. Is there any alternative way to install the sonar…
0
votes
1 answer

Clear SonarLint Annotation Occurrence in Eclipse Without SonarQube

I'm working for a client that wants SonarLint used on their projects. Their IDE of choice is Eclipse. They do not have SonarQube. What I am looking for is a way to clear out the SonarLint annotation for a particular instance of a rule violation,…
cneff
  • 388
  • 6
  • 15
0
votes
0 answers

Why does SonarLint allow a negative threshold for Cognitive complexity (Eclipse)

In Windows -> Preferences -> SonarLint -> Rules Configuration -> Java -> (search cognitive complexity), while selecting the rule for cognitive complexity, I was able to set a negative value for the threshold. I was able to successfully apply the…
Gautham M
  • 4,816
  • 3
  • 15
  • 37
0
votes
1 answer

Empty arrays and collections should be returned instead of null (java:S1168)

As I installed SonarLint plugin in my eclipse IDE, i got the above (Heading) Major Issue. Let's Assume: public List getAllCountries() { return null; //***SonarLint Suggesest*: return an empty Collection instead of…
Sunil
  • 71
  • 1
  • 11
0
votes
3 answers

Getting sonarlint error in eclipse while trying to get value from hashmap

I'm getting error like "Call "Optional#isPresent()" before accessing the value", while trying to get value from hashmap. Code: String promolevelname =…
Kavi Chinna
  • 237
  • 2
  • 7
  • 18
0
votes
2 answers

Eclipse SonarLint false positive "Unused assignments should be removed (java:S1854)"

I'm using Eclipse 2020-03 (4.15.0) with Sonarlint for Eclipse 5.1.0.17086 and I get , IMO, false positive S1854 warnings in the following code (taken from the book "Java 8 In Action"). Working with Java OpenJDK 13.0.2. This is not a showstopper…
PaulN
  • 63
  • 2
  • 10