Sonarlint - Simple and default configuration

1,521 views
Skip to first unread message

ffil...@teksystems.com

unread,
Sep 15, 2016, 8:32:21 PM9/15/16
to SonarLint
Hi,

Sorry for this question but I was hoping to find some answers I could not on the web.

I was hoping to have something quick and simple as installing the sonarlint plugin for Eclipse, have real time analysis but more importantly, to have access to customization of the rule (or even better, being able to import a set of rules for the company into the Eclipse plugin ).  

I've been try for almost 2 hours to setup following the documentation.  It seems in order to customize, I need a local SonarQube, MySQL, create projects in SonarQube, bind thems and setup a gradle task (for a gradle project) to launch the sonar-scanner......

I was hoping to have something simple, not the all-gear-for-war.  Am I missing something? Do I really need to configure and setup all this so I can have customized rules for sonarlint?

I'm sure I"m missing something here. Thx!

Julien HENRY

unread,
Sep 20, 2016, 3:33:31 AM9/20/16
to SonarLint
Hi Frederic,

It seems in order to customize, I need a local SonarQube,

a shared instance between all you team members would be better, if you intend is to set up some company standards.
 
MySQL

or any other supported DB
 
, create projects in SonarQube, bind thems

yes, and also do the configuration you want: activate / deactivate rules. There is no point using connected mode if you keep using Sonar Way profiles since this is already what SonarLint is using in "standalone" mode.
 
and setup a gradle task (for a gradle project) to launch the sonar-scanner......

Nope, this step is not needed. Only if you want also to use SonarQube to check quality (which I recommend, but that another topic :) ).

++

Julien
Message has been deleted
Message has been deleted

Frederic Filiatrault

unread,
Sep 21, 2016, 5:11:07 PM9/21/16
to SonarLint
Hi Julien,

First off, thk for your answers.  My problem is that I want to use a set of custom java rules from the company locally (Which differs from the Sonar Way).

I cannot have a user/password of the DEV Sonar server so I cannot connect to it (It's being used with Jenkins with automated builds)

So, using it locally would allow me to see the results prior Jenkins picks up the modifications and being analyzing by Sonar and ensure high quality.

That said,  I installed SonarQube locally and imported successfully the XML files from the Sonar DEV Server of the team and set it as default for Java (event deleted the other ones to make sure there's only one).

Thx!

prav.c...@gmail.com

unread,
Mar 26, 2018, 6:33:01 AM3/26/18
to SonarLint
Hi Frederic,

We are also looking for the solution in the same lines. We are using sonarlint-cli https://github.com/SonarSource/sonarlint-cli

We have our rules defined in sonarQube server, which we are planning to download and connect locally.

Can you please help us in
1. download rules
2. how to connect to the locally placed rules in java.

Regards,
Praveen
Reply all
Reply to author
Forward
0 new messages