diff --git a/.sonarcloud.properties b/.sonarcloud.properties new file mode 100644 index 000000000..f06b0ce79 --- /dev/null +++ b/.sonarcloud.properties @@ -0,0 +1,19 @@ +# https://docs.sonarqube.org/latest/analysis/analysis-parameters/ +sonar.projectKey=bcgov_nr-compliance-enforcement +sonar.organization=bcgov-sonarcloud +sonar.host.url=https://sonarcloud.io +sonar.projectName=nr-compliance-enforcement +sonar.verbose=true + +# Path is relative to the .sonarcloud.properties file. Defaults to . +sonar.sources=. +sonar.modules=frontend,backend + +# Ignore duplication scanning for tests +sonar.cpd.exclusions=**/*spec.ts,**/cypress/**,**/test/** + +# Ignore database migrations +sonar.exclusions=**/migrations/** + +# Identify the test files (https://docs.sonarsource.com/sonarqube-server/latest/project-administration/analysis-scope/#setting-the-initial-scope) +sonar.tests.inclusions=**/*spec.ts