Sonar.properties file with cli sonarlint

817 views
Skip to first unread message

SJC

unread,
Feb 3, 2017, 10:30:24 AM2/3/17
to SonarLint
How do you specify the sonar-project.properties file with the windows sonarlint cli tool?

I have a sonar.properties files that has some exclusions and sets `sonar.analysis.mode=incremental`.
But running
sonarlint -u

in the folder project folder does not pick up my properties file.

janos....@sonarsource.com

unread,
Feb 3, 2017, 11:18:20 AM2/3/17
to SonarLint
Hi,

The CLI tool doesn't use a properties file for configuration. It uses a JSON file, as explained here: http://www.sonarlint.org/commandline/index.html

To exclude files, use the --exclude option. Most of the functionality is configured with command line flags, run sonarlint -h to see all supported options.

The SonarLint CLI doesn't have the notion of modes. You might be confusing it with an older tool, the Sonar Scanner CLI. That is a different tool, it has a preview mode that is similar to what the incremental mode used to be a long time ago. But I don't recommend to use it, as we don't plan to support this usage in the long term, we focus on SonarLint instead. I recommend to use sonarlint, and configure it with the various command line options.

Janos

dexter.l...@gmail.com

unread,
Nov 30, 2017, 12:34:42 PM11/30/17
to SonarLint
The link http://www.sonarlint.org/commandline/index.html is returning a 404.  Is there a new location for this file?

Thanks

Janos Gyerik

unread,
Dec 1, 2017, 3:38:04 AM12/1/17
to dexter.l...@gmail.com, SonarLint
Hi,

No, there is no new location for this. We no longer support SonarLint CLI.

Janos

--
You received this message because you are subscribed to a topic in the Google Groups "SonarLint" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sonarlint/qK21fbSlVNA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sonarlint+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarlint/8c48695d-bddf-4a2e-a9c5-c0813c577415%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--

Janos Gyerik | SonarSource

Software Developer

http://sonarsource.com


Are you using SonarLint in your IDE?

Reply all
Reply to author
Forward
0 new messages