SonarLint in PHPStorm : indentation

187 views
Skip to first unread message

Pierre Goiffon

unread,
Dec 29, 2017, 5:38:02 AM12/29/17
to SonarLint
Hello,

I've just installed SonarLint.
I'm surprised that it reports wrong indentation : "Replace all tab characters in this file by sequences of white-spaces"... Although my project is set to use tab indentations...

It seems this comes from a default rule : I saw this article about SonarQube https://pietrodn.wordpress.com/2015/05/17/how-to-make-sonarqube-accept-tabs-instead-of-spaces-for-indentation/

Reading the official site (https://www.sonarlint.org/intellij/howto.html) :
"When your project is connected to SonarQube, you can configure rules on the server. When the project is not connected, SonarLint uses the rules in the default quality profiles."
As I don't have a SonarQube instance for now (we might in the future but testing first :) )
I understand that this rule is by default in this extension... Am I right ?

Is there any mean to disable this rule besides install a SonarQube instance ?

Duarte Meneses

unread,
Dec 29, 2017, 5:46:39 AM12/29/17
to Pierre Goiffon, SonarLint
Hi,

I confirm that currently the only way to configure the rules is to connect to a SonarQube instance. We are considering changing this at some point.
Note that connecting to a SonarQube instance will bring other benefits: 
  • You can also 'mute' issues. 
  • All configured rules and known issues will be shared with people using the same project and eventually with CI jobs analyzing the project. 
  • SonarLint will also be able to show if an issues is new or already known by SonarQube.



 

--
You received this message because you are subscribed to the Google Groups "SonarLint" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarlint+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarlint/3c735b55-f571-4f69-809d-3230bb532743%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Duarte Meneses | SonarSource
Software Engineer

Are you using SonarLint in your IDE?

Pierre Goiffon

unread,
Dec 29, 2017, 5:57:59 AM12/29/17
to SonarLint
Thanks very much !
Well noted, i'll try to install a SonarQube instance.



Le vendredi 29 décembre 2017 11:46:39 UTC+1, duarte.meneses a écrit :
Hi,

I confirm that currently the only way to configure the rules is to connect to a SonarQube instance. We are considering changing this at some point.
Note that connecting to a SonarQube instance will bring other benefits: 
  • You can also 'mute' issues. 
  • All configured rules and known issues will be shared with people using the same project and eventually with CI jobs analyzing the project. 
  • SonarLint will also be able to show if an issues is new or already known by SonarQube.



 
On 29 December 2017 at 11:38, Pierre Goiffon <pierre....@pirhome.net> wrote:
Hello,

I've just installed SonarLint.
I'm surprised that it reports wrong indentation : "Replace all tab characters in this file by sequences of white-spaces"... Although my project is set to use tab indentations...

It seems this comes from a default rule : I saw this article about SonarQube https://pietrodn.wordpress.com/2015/05/17/how-to-make-sonarqube-accept-tabs-instead-of-spaces-for-indentation/

Reading the official site (https://www.sonarlint.org/intellij/howto.html) :
"When your project is connected to SonarQube, you can configure rules on the server. When the project is not connected, SonarLint uses the rules in the default quality profiles."
As I don't have a SonarQube instance for now (we might in the future but testing first :) )
I understand that this rule is by default in this extension... Am I right ?

Is there any mean to disable this rule besides install a SonarQube instance ?

--
You received this message because you are subscribed to the Google Groups "SonarLint" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarlint+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages