-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
53 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,63 @@ | ||
sonar.projectKey=smartcontractkit_chainlink | ||
sonar.sources=. | ||
sonar.sourceEncoding=UTF-8 | ||
sonar.python.version=3.8 | ||
|
||
# Full exclusions from the static analysis | ||
sonar.exclusions=**/node_modules/**/*,**/mocks/**/*, **/testdata/**/*, **/contracts/typechain/**/*, **/contracts/artifacts/**/*, **/contracts/cache/**/*, **/contracts/scripts/**/*, **/generated/**/*, **/fixtures/**/*, **/docs/**/*, **/tools/**/*, **/*.pb.go, **/*report.xml, **/*.config.ts, **/*.txt, **/*.abi, **/*.bin, **/*_codecgen.go, core/services/relay/evm/types/*_gen.go, core/services/relay/evm/types/gen/main.go, core/services/relay/evm/testfiles/*, **/core/web/assets**, core/scripts/chaincli/handler/debug.go, **/fuzz/**/* | ||
sonar.exclusions=\ | ||
**/node_modules/**/*,\ | ||
**/mocks/**/*,\ | ||
**/testdata/**/*,\ | ||
**/contracts/typechain/**/*,\ | ||
**/contracts/artifacts/**/*,\ | ||
**/contracts/cache/**/*,\ | ||
**/contracts/scripts/**/*,\ | ||
**/generated/**/*,\ | ||
**/fixtures/**/*,\ | ||
**/testutils/**/*,\ | ||
**/gen/**/*,\ | ||
**/testfiles/**/*,\ | ||
**/testconfig/**/*,\ | ||
**/core/web/assets/**/*,\ | ||
**/core/scripts/**/*,\ | ||
**/docs/**/*,\ | ||
**/tools/**/*,\ | ||
**/fuzz/**/*,\ | ||
**/*.pb.go,\ | ||
**/*report.xml,\ | ||
**/*.config.ts,\ | ||
**/*.txt,\ | ||
**/*.abi,\ | ||
**/*.bin,\ | ||
**/*_codecgen.go,\ | ||
**/*_gen.go,\ | ||
**/debug.go | ||
|
||
# Coverage exclusions | ||
sonar.coverage.exclusions=**/*.test.ts, **/*_test.go, **/contracts/test/**/*, **/contracts/**/tests/**/*, **/core/**/testutils/**/*, **/core/**/mocks/**/*, **/core/**/cltest/**/*, **/integration-tests/**/*, **/generated/**/*, **/core/scripts**/* , **/*.pb.go, ./plugins/**/*, **/main.go, **/0195_add_not_null_to_evm_chain_id_in_job_specs.go, **/core/services/ocr2/plugins/ocr2keeper/evmregistry/v21/mercury/streams/streams.go | ||
sonar.coverage.exclusions=\ | ||
**/*.test.ts,\ | ||
**/*_test.go,\ | ||
**/contracts/test/**/*,\ | ||
**/contracts/**/tests/**/*,\ | ||
**/core/**/cltest/**/*,\ | ||
**/integration-tests/**/*,\ | ||
**/plugins/**/*,\ | ||
**/main.go,\ | ||
**/0195_add_not_null_to_evm_chain_id_in_job_specs.go,\ | ||
**/core/services/ocr2/plugins/ocr2keeper/evmregistry/v21/mercury/streams/streams.go | ||
|
||
# Duplication exclusions: mercury excluded because current MercuryProvider and Factory APIs are inherently duplicated due to embedded versioning | ||
sonar.cpd.exclusions=**/contracts/**/*.sol, **/config.go, /core/services/ocr2/plugins/ocr2keeper/evm*/*, **/integration-tests/testconfig/**/*, /core/services/ocr2/plugins/mercury/plugin.go | ||
sonar.cpd.exclusions=\ | ||
**/contracts/**/*.sol,\ | ||
**/config.go,\ | ||
**/core/services/ocr2/plugins/ocr2keeper/evm/**/*,\ | ||
**/core/services/ocr2/plugins/mercury/plugin.go | ||
|
||
# Tests' root folder, inclusions (tests to check and count) and exclusions | ||
sonar.tests=. | ||
sonar.test.inclusions=**/*_test.go, **/*.test.ts | ||
sonar.test.exclusions=**/integration-tests/**/*, **/charts/chainlink-cluster/dashboard/cmd/* | ||
sonar.test.inclusions=\ | ||
**/*_test.go,\ | ||
**/*.test.ts | ||
sonar.test.exclusions=\ | ||
**/integration-tests/**/*,\ | ||
**/charts/chainlink-cluster/dashboard/cmd/**/* |