https://github.com/7ph/sonar-scanner-version-tester
Utility to reproduce bugs and test behavior of multiple sonar-scanner versions on the same codebase
https://github.com/7ph/sonar-scanner-version-tester
Last synced: 3 months ago
JSON representation
Utility to reproduce bugs and test behavior of multiple sonar-scanner versions on the same codebase
- Host: GitHub
- URL: https://github.com/7ph/sonar-scanner-version-tester
- Owner: 7PH
- Created: 2024-06-24T13:19:42.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-06-24T15:26:53.000Z (almost 2 years ago)
- Last Synced: 2026-01-12T11:58:57.772Z (5 months ago)
- Language: Dockerfile
- Homepage: https://docs.sonarsource.com/sonarqube/latest/analyzing-source-code/scanners/sonarscanner/
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SonarScanner CLI Version Tester
Utility to reproduce/test behaviors of different SonarScanner CLI versions
## How to use
1. Clone this repository.
2. Run `bash setup.sh`.
3. Fill the required values in `.env`:
- the user ID and GID to use within the container
- the SonarScanner CLI version you want to use.
- your Sonar token, project key (and organization if using SonarCloud).
3. Set up the desired source code in `src/`.
5. Run `docker compose up --build`.
## More customization
### Pass more Sonar properties
- Use `sonar-project.properties` to pass custom sonar properties.
- Additionally, any environment value in `.env` will be made available to the SonarScanner CLI.
### Scan custom code
- The scanned code is in `src/`. Put anything you want to scanned inside.