{"id":33750,"date":"2023-05-04T16:27:24","date_gmt":"2023-05-04T16:27:24","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=33750"},"modified":"2023-05-04T16:27:26","modified_gmt":"2023-05-04T16:27:26","slug":"list-of-sonarqube-sonar-scanner-properties-options-with-explaination","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/list-of-sonarqube-sonar-scanner-properties-options-with-explaination\/","title":{"rendered":"List of SonarQube sonar-scanner.properties options with explaination"},"content":{"rendered":"\n<p>Here are some common SonarQube <code>sonar-scanner.properties<\/code> options and their explanations:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><code>sonar.host.url<\/code>: The URL of the SonarQube server being used.<\/li>\n\n\n\n<li><code>sonar.login<\/code>: The login token or username to authenticate with the SonarQube server.<\/li>\n\n\n\n<li><code>sonar.password<\/code>: The password to authenticate with the SonarQube server.<\/li>\n\n\n\n<li><code>sonar.projectKey<\/code>: A unique identifier for the project being analyzed. This is used to differentiate between different projects in SonarQube.<\/li>\n\n\n\n<li><code>sonar.projectName<\/code>: The display name for the project being analyzed. This is what will be displayed in SonarQube.<\/li>\n\n\n\n<li><code>sonar.projectVersion<\/code>: The version number for the project being analyzed.<\/li>\n\n\n\n<li><code>sonar.sources<\/code>: The comma-separated list of directories containing the source code. SonarQube will analyze the code in these directories.<\/li>\n\n\n\n<li><code>sonar.tests<\/code>: The comma-separated list of directories containing the test code. SonarQube will analyze the test code in these directories.<\/li>\n\n\n\n<li><code>sonar.language<\/code>: The programming language used in the source code.<\/li>\n\n\n\n<li><code>sonar.sourceEncoding<\/code>: The character encoding used in the source code.<\/li>\n\n\n\n<li><code>sonar.coverageReportPaths<\/code>: The comma-separated list of paths to the code coverage report(s).<\/li>\n\n\n\n<li><code>sonar.exclusions<\/code>: The comma-separated list of files or directories to exclude from analysis.<\/li>\n\n\n\n<li><code>sonar.inclusions<\/code>: The comma-separated list of files or directories to include in analysis.<\/li>\n\n\n\n<li><code>sonar.projectBaseDir<\/code>: The base directory for the project being analyzed. This is the directory that contains the <code>sonar-scanner.properties<\/code> file.<\/li>\n\n\n\n<li><code>sonar.log.level<\/code>: The level of logging for the SonarQube scanner.<\/li>\n\n\n\n<li><code>sonar.verbose<\/code>: Whether or not to output verbose logging information.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Here are some common SonarQube sonar-scanner.properties options and their explanations:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","_joinchat":[],"footnotes":""},"categories":[2],"tags":[],"class_list":["post-33750","post","type-post","status-publish","format-standard","hentry","category-uncategorised"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/33750","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=33750"}],"version-history":[{"count":1,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/33750\/revisions"}],"predecessor-version":[{"id":33751,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/33750\/revisions\/33751"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=33750"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=33750"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=33750"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}