Here are some common SonarQube sonar-scanner.properties
options and their explanations:
sonar.host.url
: The URL of the SonarQube server being used.sonar.login
: The login token or username to authenticate with the SonarQube server.sonar.password
: The password to authenticate with the SonarQube server.sonar.projectKey
: A unique identifier for the project being analyzed. This is used to differentiate between different projects in SonarQube.sonar.projectName
: The display name for the project being analyzed. This is what will be displayed in SonarQube.sonar.projectVersion
: The version number for the project being analyzed.sonar.sources
: The comma-separated list of directories containing the source code. SonarQube will analyze the code in these directories.sonar.tests
: The comma-separated list of directories containing the test code. SonarQube will analyze the test code in these directories.sonar.language
: The programming language used in the source code.sonar.sourceEncoding
: The character encoding used in the source code.sonar.coverageReportPaths
: The comma-separated list of paths to the code coverage report(s).sonar.exclusions
: The comma-separated list of files or directories to exclude from analysis.sonar.inclusions
: The comma-separated list of files or directories to include in analysis.sonar.projectBaseDir
: The base directory for the project being analyzed. This is the directory that contains thesonar-scanner.properties
file.sonar.log.level
: The level of logging for the SonarQube scanner.sonar.verbose
: Whether or not to output verbose logging information.
I’m a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I am working at Cotocus. I blog tech insights at DevOps School, travel stories at Holiday Landmark, stock market tips at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at I reviewed , and SEO strategies at Wizbrand.
Please find my social handles as below;
Rajesh Kumar Personal Website
Rajesh Kumar at YOUTUBE
Rajesh Kumar at INSTAGRAM
Rajesh Kumar at X
Rajesh Kumar at FACEBOOK
Rajesh Kumar at LINKEDIN
Rajesh Kumar at PINTEREST
Rajesh Kumar at QUORA
Rajesh Kumar at WIZBRAND