Analysis Properties not Working in SonarLint e.g.

501 views
Skip to first unread message

sameer gupta

unread,
May 26, 2017, 7:47:59 AM5/26/17
to SonarLint

i Team,

I wanted to exclude a few paths from my sonarLint analysis. However I see that sonarLint runs on all the Source Files all the time. 
What am I doing wrong here.

I am running this on a windows system:
My Project path looks something like this:

H:\TS_Source\ts\parent\services\svcmgr\src\main\java\com\dfd\trade\apps\servicemanager

The project domain looks like this:
com.dfd.trade.apps.servicemanager.<java_classes>

I wand to run this just on all the code Inside servicemanager.
I tried using the following properties but to no avail.

  • sonar.projectBaseDir
  • sonar.sources
  • sonar.inclusion

Can someone share an example of how to confiugre this on the GUI on in some propert file or point out what I'm doing wrong.



Julien HENRY

unread,
May 29, 2017, 2:49:09 AM5/29/17
to sameer gupta, SonarLint
Hi,

SonarLint is not the same as SonarQube. Only analyzer properties are supported. For example sonar.javascript.globals.

Configuring local exclusions is not yet supported (it work in connected mode when exclusions are configured on the server).

++

Julien Henry | SonarSource

Developer

http://sonarsource.com


--
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/2bca967f-e54e-4c35-9fde-69cc70f163f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

sanjay....@gmail.com

unread,
Sep 15, 2017, 10:45:52 AM9/15/17
to SonarLint
Hi

I am trying to get the exclusions from SonarQube server in connected mode. But its not working. Not sure if I am missing something.
Added 'sonar.exclusions' = **/*.png,  **/*.gif etc
Executed sonarlint -u

But it still looks for files with excluded extensions.
INFO: Invalid character encountered in file '{PATH}/xxx.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
Reply all
Reply to author
Forward
0 new messages