SonarLint CLI

825 views
Skip to first unread message

trias...@gmail.com

unread,
Aug 17, 2017, 4:58:14 AM8/17/17
to SonarLint
Hi,

I want to do scan my project with sonarlint via command line, and I follow this article http://www.sonarlint.org/commandline/. After I do my scan with Standalone mode all is well, but when I trying setup to connected mode I face an issue "where I should create/find global.json for global configuration?" because in article said the location in this {home}/.sonarlint/conf/global.json. But in my case I can't find the folder conf in {home}/.sonarlint, so what should I do? Do I need create that folder and create global.json too? Before I try this sonarlint for CLI, I am already installed sonarlint plugin for eclipse, whether this step cause no folder conf?

Thanks in advance.

duarte.meneses

unread,
Aug 22, 2017, 4:07:59 AM8/22/17
to SonarLint, trias...@gmail.com
Hi,

Yes, please create conf and global.json in it.
SonarLint for Eclipse stores its configuration in a different location, so it's normal that it didn't create the file that is used by SonarLint CLI.

trias...@gmail.com

unread,
Aug 27, 2017, 10:27:40 PM8/27/17
to SonarLint, trias...@gmail.com
Hi duarte,

Sorry for the old response, it's already done with me creating the folder and the file. Thank you for the solution.

Thanks.
Reply all
Reply to author
Forward
0 new messages