Skip to content

Commit

Permalink
[CRT-24] Exclude TargetPane.tsx from coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyratox committed Oct 28, 2024
1 parent fcfc94b commit 4c5e111
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4c5e111

Please sign in to comment.