From 942f2674d301bb6bb0fbf42610c9c05147e3644c Mon Sep 17 00:00:00 2001 From: Alexandr Yepishev Date: Fri, 9 Feb 2024 19:44:09 +0000 Subject: [PATCH] Update Sonar properties --- sonar-project.properties | 60 ++++++++++++++++++++++++++++++++++++---- 1 file changed, 54 insertions(+), 6 deletions(-) diff --git a/sonar-project.properties b/sonar-project.properties index db2a6be1f3b..c5a2eb33ad2 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -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/**/* \ No newline at end of file