2025-03-14 21:59:59 -06:00
|
|
|
# sonar-scanner
|
|
|
|
|
|
|
|
|
|
> A generic scanner for SonarQube projects that do not use build tools such as Maven, Gradle, or Ant.
|
|
|
|
|
> More information: <https://docs.sonarqube.org/latest/analysis/scan/sonarscanner/>.
|
|
|
|
|
|
|
|
|
|
- Scan a project with configuration file in your project's root directory named `sonar-project.properties`:
|
|
|
|
|
|
|
|
|
|
`sonar-scanner`
|
|
|
|
|
|
|
|
|
|
- Scan a project using configuration file other than `sonar-project.properties`:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`sonar-scanner {{[-D|--define]}} {{project.settings=myproject.properties}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Print debugging information:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`sonar-scanner {{[-X|--debug]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Display help:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`sonar-scanner {{[-h|--help]}}`
|