Search code examples
sonarqubesonarlint

Is it possible to provide sonar-project.properties to sonarlint-cli?


My objective is to run sonar scan and provide early feed back on defects without uploading scan result to sonar server.

I am planning to use sonarlint-cli to scan code as soon as Git merge request is crated. This will help me to report issues early without running full sonar scan.

I already have multiple module sonar-project.properties at the root folder of source code.

Can I use same sonar-project.properties with sonarlint-cli?


Solution

  • No it's not possible to feed sonarlint-cli with sonar-project.properties. You must use a dedicated sonarlint.json configuration file. See http://www.sonarlint.org/commandline/index.html