diff --git a/sonar-project.properties b/sonar-project.properties index 52793b99f4..8b7c00ab34 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -7,8 +7,15 @@ sonar.typescript.tsconfigPath=tsconfig.json sonar.eslint.reportPaths=eslint-report.json # Path to sources -sonar.sources=benchmark,ci,desktop,packages,web -sonar.exclusions=**/*.test.ts,**/*.test.tsx,**/integration-test/** +sonar.sources=\ + benchmark,\ + ci,\ + desktop,\ + packages,\ + web +sonar.exclusions=\ + **/*.test.ts,\ + **/*.test.tsx sonar.inclusions=\ **/*.ts,\ **/*.tsx,\ @@ -16,10 +23,23 @@ sonar.inclusions=\ **/package.json # Path to tests -sonar.tests=benchmark,ci,desktop,packages,web -sonar.test.inclusions=**/*.test.ts,**/*.test.tsx -sonar.test.exclusions=**/integration-test/**/*,packages/suite-base/src/test/**/*,packages/suite-base/src/testing/**/* +sonar.tests=\ + benchmark,\ + ci,\ + desktop,\ + packages,\ + web +sonar.test.inclusions=\ + **/*.test.ts,\ + **/*.test.tsx # Code coverage +sonar.coverage.exclusions=\ + packages/suite-base/src/test/**/*,\ + packages/suite-base/src/testing/**/*,\ + **/integration-test/**,\ + **/*.stories.tsx,\ + **/constants.ts,\ + **/*.style.ts sonar.javascript.lcov.reportPaths=coverage/lcov.info sonar.typescript.lcov.reportPaths=coverage/lcov.info