Skip to content

Commit

Permalink
Excluded *.stories.tsx, *.style.ts and /constants.ts files from Sonar…
Browse files Browse the repository at this point in the history
… code coverage (#250)

**User-Facing Changes**
N/A

**Description**
Excluded unnecessary files to Sonar code coverage metrics: constants.ts,
*.style.ts and *stories.tsx

**Checklist**

- [x] Tested locally with Sonar
  • Loading branch information
luluiz authored Nov 4, 2024
1 parent e503d32 commit d946899
Showing 1 changed file with 25 additions and 5 deletions.
30 changes: 25 additions & 5 deletions sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,39 @@ 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,\
**/*.js,\
**/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

0 comments on commit d946899

Please sign in to comment.