| 1 |
# SonarQube configuration file |
| 2 |
# |
| 3 |
# Sample Ruby Sonar file - https://docs.sonarsource.com/sonarqube-server/10.6/analyzing-source-code/languages/ruby/ |
| 4 |
# properties defined in https://docs.sonarsource.com/sonarqube-server/latest/analyzing-source-code/analysis-parameters/ |
| 5 |
# |
| 6 |
# view this repo in sonar: <ADD your URL like https://sonar.progress.com/dashboard?id=chef_mixlib-config_d7523127-841e-41ec-a43d-bff0419f0d07 |
| 7 |
|
| 8 |
# Required metadata |
| 9 |
sonar.projectKey=chef_mixlib-config_d7523127-841e-41ec-a43d-bff0419f0d07 |
| 10 |
|
| 11 |
# project name is 3 parts: "Chef" + "<area/product>" + "<repo>" with underscores between |
| 12 |
# <area/product> choices: Chef-Agents | Chef-Automate | Chef360 | Chef-Habitat | Chef-Infra-Server | Chef-Shared-Services |
| 13 |
# example project name: chef/chef-vault repo would be Chef_Chef-Infra-Client_chef-vault |
| 14 |
sonar.projectName=Chef_Chef-Infra-Client_mixlib-config |
| 15 |
# sonar.projectVersion=1.0 |
| 16 |
# sonar.projectDescription= |
| 17 |
|
| 18 |
# Language - https://docs.sonarsource.com/sonarqube-server/latest/analyzing-source-code/languages/overview/ go, ruby, rust |
| 19 |
sonar.language=ruby |
| 20 |
sonar.sources=lib |
| 21 |
# sonar.sources=lib <-- for Ruby, match this with the /spec directory for tests & SARIF output directory for test results/rcov |
| 22 |
# sonar.exclusions=**/*_test.go, **/*.js, **/*.sql, **/*.yml, **/*.yaml; may exclude **/vendor/** for Ruby |
| 23 |
|
| 24 |
# Unit tests |
| 25 |
sonar.tests=spec |
| 26 |
# was spec/**/*.rb |
| 27 |
# sonar.test.inclusions=**/*_test.go **/*Test.java |
| 28 |
# Coverage report |
| 29 |
sonar.ruby.coverage.framework=RSpec |
| 30 |
sonar.ruby.coverage.reportPaths=coverage/coverage.json |
| 31 |
# ^^^ comma-delimited paths to Rubocop reports, SimpleCov, or RSpec plugin reports (coverage/coverage.json <-- default output for simpleCov) |
| 32 |
|
| 33 |
# sonar.ruby.rubocop.reportPaths=./rubocop-report.json -- import Ruby Rubocop |
| 34 |
# sonar.dependencyCheck.htmlReportPath=./dependency-check-report.html -- import OWASP dependency check report |
| 35 |
# sonar.externalIssuesReportPaths Comma-delimited list of paths to generic issue reports. |
| 36 |
# sonar.sarifReportPaths Comma-delimited list of paths to SARIF issue reports. |
| 37 |
|
| 38 |
# Additional settings |
| 39 |
# sonar.qualitygate.wait=false |
| 40 |
# sonar.qualitygate.timeout=300 |
| 41 |
|
| 42 |
# skip C-language processor |
| 43 |
sonar.c.file.suffixes=- |
| 44 |
sonar.cpp.file.suffixes=- |
| 45 |
sonar.objc.file.suffixes=- |