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.
|
2026-02-18 06:55:01 -07:00
|
|
|
> More information: <https://docs.sonarsource.com/sonarqube-server/analyzing-source-code/scanners/sonarscanner>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- 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]}}`
|