{"id":33748,"date":"2023-05-04T16:22:06","date_gmt":"2023-05-04T16:22:06","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=33748"},"modified":"2023-05-04T17:00:11","modified_gmt":"2023-05-04T17:00:11","slug":"list-of-sonarqube-project-properties-options-with-explaination","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/list-of-sonarqube-project-properties-options-with-explaination\/","title":{"rendered":"List of SonarQube sonar-project.properties options with explaination"},"content":{"rendered":"\n<p>Here are some common SonarQube <code>sonar-project.properties<\/code> options and their explanations:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\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.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.coverageReportPaths<\/code>: The comma-separated list of paths to the code coverage report(s).<\/li>\n\n\n\n<li><code>sonar.java.binaries<\/code>: The comma-separated list of directories containing the compiled Java classes.<\/li>\n\n\n\n<li><code>sonar.java.libraries<\/code>: The comma-separated list of paths to the Java libraries used by the project.<\/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.tests<\/code>: The comma-separated list of directories containing the test code.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Here are some common SonarQube sonar-project.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":{"_joinchat":[],"footnotes":""},"categories":[2],"tags":[],"class_list":["post-33748","post","type-post","status-publish","format-standard","hentry","category-uncategorised"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/33748","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=33748"}],"version-history":[{"count":3,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/33748\/revisions"}],"predecessor-version":[{"id":33754,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/33748\/revisions\/33754"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=33748"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=33748"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=33748"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}