Skip to content

Commit

Permalink
Exclude test and config files from Sonar coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
chudilka1 committed May 24, 2023
1 parent 047001b commit 43e5366
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ sonar.projectKey=smartcontractkit_external-adapters-js
sonar.sources=.

# Full exclusions from the static analysis
sonar.exclusions=**/node_modules/**/*, **/webpack.* **/*mocks*/**/*, **/bin/**/*, **/coverage/**/*, **/generated/**/*, **/fixtures/**/*, **/docs/**/*, **/tools/**/*, **/*report.xml, **/*.config.*, **/tsconfig.json, **/*.d.ts, **/*.txt, **/*.abi, **/*.bin
sonar.exclusions=**/node_modules/**/*, **/webpack.* **/*mocks*/**/*, **/bin/**/*, **/coverage/**/*, **/generated/**/*, **/fixtures/**/*, **/docs/**/*, **/tools/**/*, **/*report.xml, **/config.ts, **/*.config.*, **/tsconfig.json, **/*.d.ts, **/*.txt, **/*.abi, **/*.bin
# Coverage exclusions (applied to js, ts, tsx files)
sonar.coverage.exclusions=**/*.test.*, **/test-helpers/**/*, **/test/**/*, **/tests/**/*, **/examples/**/*, **/scripts/**/*, **/ **/support/**/*
sonar.coverage.exclusions=**/*test*.*, **/test*.*, **/*test.*, **/index.ts, **/test-helpers/**/*, **/test/**/*, **/tests/**/*, **/k6/**/*, **/examples/**/*, **/scripts/**/*, **/support/**/*
# Duplication exclusions
sonar.cpd.exclusions=**/adpater.ts

Expand Down

0 comments on commit 43e5366

Please sign in to comment.