From 4c5e1110d29ba7c992fbb470106be9d8f5b43ba9 Mon Sep 17 00:00:00 2001 From: Nico Hauser Date: Mon, 28 Oct 2024 08:51:56 +0100 Subject: [PATCH] [CRT-24] Exclude TargetPane.tsx from coverage --- sonar-project.properties | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sonar-project.properties b/sonar-project.properties index c09b67b..795c0ad 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -4,7 +4,9 @@ sonar.organization=crt sonar.javascript.lcov.reportPaths=./backend/coverage/lcov.info,./backend/coverage-e2e/lcov.info,./frontend/coverage/lcov.info,./frontend/coverage-pw/lcov.info,./frontend/coverage-ct/lcov.info,./apps/scratch/coverage/lcov.info # Exclude test files, type definitions and config files from coverage analysis. -sonar.coverage.exclusions=**/__tests__/**/*,**/__mocks__/**/*,**/*.spec.ts,**/*.spec.tsx,**/*.d.ts,**/.eslintrc.js,**/*.config.js,**/*.config.ts,**/tests/**/*,**/apps/scratch/scripts/**/* +# we also exclude some specific files. the following is a list of files that are excluded with the reason why. +# apps/scratch/src/containers/TargetPane.tsx - this file is a copy from the scratch project (with some redundant functions removed) and is difficult to test for now. +sonar.coverage.exclusions=**/__tests__/**/*,**/__mocks__/**/*,**/*.spec.ts,**/*.spec.tsx,**/*.d.ts,**/.eslintrc.js,**/*.config.js,**/*.config.ts,**/tests/**/*,**/apps/scratch/scripts/**/*,**/apps/scratch/src/containers/TargetPane.tsx # Exclude test files from duplication analysis sonar.cpd.exclusions=**/__tests__/**/*,**/*.spec.ts,**/*.spec.tsx