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
20
votes
3 answers

Method has 8 parameters, which is greater than 7 authorized

When I am scanning code with sonar lint the following code shows the bug as "Method has 8 parameters, which is greater than 7 authorized" @PutMapping("/something") public List updateSomeThing(@PathVariable final SomeCode code, …
Baji Shaik
  • 1,022
  • 2
  • 10
  • 14
14
votes
4 answers

How to install an older Eclipse plugin of SonarLint

Currently in the Eclipse Marketplace SonarLint is only available in the latest version (2.5.1). For a compatibility reason I need to have version (2.2.1). How can i install an older version of my choice?
The Digital Ad Venture
  • 1,576
  • 1
  • 16
  • 24
11
votes
3 answers

How to enable/disable any rule from SonarLint in Eclipse

I have SonarLint installed in Eclipse and there is a remotely set up sonarQube server, but rules are different on both . How can I configure rules same as SonarQube on SonarLint in my Eclipse ?
Nishant Modi
  • 669
  • 1
  • 6
  • 19
10
votes
3 answers

Install sonarlint plugin in eclipse offline

I have some systems, due to security issues we have kept them without internet. How do we install sonarlint plugin in eclipse offline on them? What are manual steps to install? From where we download this jar?
TPS
  • 493
  • 1
  • 5
  • 28
9
votes
1 answer

How to add certificates to SonarLint in Eclipse

A certificate is required to connect my SonarQube server. I have installed the SonarLint plugin, but it does not have any option to add certificates to connect my SonarQube server. It has only URL, username , password options. Is there any way to…
Débora
  • 5,816
  • 28
  • 99
  • 171
8
votes
2 answers

How to include a file in sonar lint for analysis if it was excluded?

I clicked on "exclude" within the sonarlint menuin eclise for a file. Now i can't figure out how to enable it? the sonarlint analyze option is greyed out for the file now. I tried looking for excluded files at Preferences > SonarLink > File…
tweeper
  • 352
  • 1
  • 4
  • 16
6
votes
1 answer

What does the "squid:" Prefix mean in SonarLint Rules?

I just started using the SonarLint plugin for Eclipse to analyze my Java code. I was wondering, what does the "squid:" prefix mean in SonarLint Rule keys? Does it stand for something? (see screenshot below) Sonar Rules Config…
user9893788
5
votes
2 answers

Eclipse - Sonar S2629 possible false positive with new String

I'm using latest Eclipse and Sonar plugin In answer for logging there's the following line: log.debug("Request body: {}", new String(body, "UTF-8")); Which should create String only if in DEBUG level: /** * Log a message at the DEBUG level…
Ori Marko
  • 56,308
  • 23
  • 131
  • 233
5
votes
2 answers

SonarLint ignores quality profile from server

Using SonarLint 2.0.0 with Eclipse Mars.2 and SonarQube Server 5.3, I have a Maven multi-module project with each module connected to the corresponding project component on the SonarQube Server. The server uses a custom quality profile. I've…
Harald Wellmann
  • 12,615
  • 4
  • 41
  • 63
4
votes
3 answers

SonarLint plugin not working in Eclipse Oxygen

I am trying to get SonarLint plugin working in Eclipse but I am not having much luck. More specifically, I don't see any issues detected or highlighted in the "SonarLint On-the-fly" tab when looking at a simple Java class in a Java project. I use…
BustedSanta
  • 1,368
  • 7
  • 28
  • 55
4
votes
1 answer

How can we make SonarLint startup faster in Eclipse with lots of projects?

In our case we had a parent project (trunk) where all plug-ins where sub-projects and we want all the sub projects to have the same rules. In order to make maintenance easier we thought we could bind all plug-in projects in eclipse to trunk (so we…
Andreas Scharf
  • 136
  • 1
  • 2
  • 10
4
votes
1 answer

Use an xml file as a rule set for SonarLint (no SonarQube server) in a Eclipse Java environment

Is it possible to use a rule set defined in .Xml (based on SonarQube- und FindBugs rules) and run it without setting up a SonarQube server. I want to use SonarLint in Eclipse for some Java projects with only the input of the rule set i get…
The Digital Ad Venture
  • 1,576
  • 1
  • 16
  • 24
4
votes
1 answer

Can I configure the used ruleset for SonarLint in Eclipse

Is there any way to enable/disable rules for SonarLint analysis inside Eclipse? I'm using SonarQube Server 5.6 and the Eclipse SonarLint Plugin 2.1 and i can see the rule set on the SQ Server. But I would like to edit the rule set locally in my…
Tobi
  • 103
  • 1
  • 2
  • 7
3
votes
1 answer

Is there a way to download the SonarLint report generated in Eclipse IDE?

SonarLint analyzes the code and generates the report fine within it's SonarLint Report window. However, I am not able find any option to extract/export this report. I also tried looking for any setting in the preferences but could not find any.
3
votes
1 answer

Resource annotation in servlets triggers squid:S2226

When I try to use the Resource annotation in a servlet, Sonar triggers rule squid:S2226 "Servlets should not have mutable instance fields" and tells me make the variable final or static. But resource injection does not work and final and static…
Gzorg
  • 809
  • 4
  • 10
  • 25
1
2 3 4 5 6 7