Skip to content

Commit

Permalink
Update Sonar properties
Browse files Browse the repository at this point in the history
  • Loading branch information
chudilka1 committed Feb 12, 2024
1 parent b0a1d23 commit 942f267
Showing 1 changed file with 54 additions and 6 deletions.
60 changes: 54 additions & 6 deletions sonar-project.properties
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
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
# Duplication exclusions
sonar.cpd.exclusions=**/contracts/**/*.sol, **/config.go, /core/services/ocr2/plugins/ocr2keeper/evm*/*,**/integration-tests/testconfig/**/*
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/**/*,\
**/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/**/*

0 comments on commit 942f267

Please sign in to comment.