From 53d7c0ad1cb4352860f23ab78e449524a75d5976 Mon Sep 17 00:00:00 2001 From: sdimitrov9 Date: Fri, 20 Dec 2024 16:42:19 +0200 Subject: [PATCH] Add sonar properties file for efficient sonar management Signed-off-by: sdimitrov9 --- hedera-mirror-web3/sonar-project.properties | 2 -- sonar-project.properties | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) delete mode 100644 hedera-mirror-web3/sonar-project.properties create mode 100644 sonar-project.properties diff --git a/hedera-mirror-web3/sonar-project.properties b/hedera-mirror-web3/sonar-project.properties deleted file mode 100644 index 93954b36c1..0000000000 --- a/hedera-mirror-web3/sonar-project.properties +++ /dev/null @@ -1,2 +0,0 @@ -# Exclude a package and its child packages -sonar.exclusions=src/main/java/com/hedera/services/** \ No newline at end of file diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000000..38fdcf6b83 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,18 @@ +# Project root level configurations +sonar.projectKey=hedera-mirror-node +sonar.modules=hedera-mirror-common,hedera-mirror-graphql,hedera-mirror-grpc,hedera-mirror-importer,hedera-mirror-protobuf,hedera-mirror-rest,hedera-mirror-rest-java,hedera-mirror-rosetta,hedera-mirror-test,hedera-mirror-web3 + +# Module-specific configurations +hedera-mirror-common.sonar.projectBaseDir=hedera-mirror-common +hedera-mirror-graphql.sonar.projectBaseDir=hedera-mirror-graphql +hedera-mirror-grpc.sonar.projectBaseDir=hedera-mirror-grpc +hedera-mirror-importer.sonar.projectBaseDir=hedera-mirror-importer +hedera-mirror-protobuf.sonar.projectBaseDir=hedera-mirror-protobuf +hedera-mirror-rest.sonar.projectBaseDir=hedera-mirror-rest +hedera-mirror-rest-java.sonar.projectBaseDir=hedera-mirror-rest-java +hedera-mirror-rosetta.sonar.projectBaseDir=hedera-mirror-rosetta +hedera-mirror-test.sonar.projectBaseDir=hedera-mirror-test +hedera-mirror-web3.sonar.projectBaseDir=hedera-mirror-web3 + +# Exclude packages from being scanned +hedera-mirror-web3.sonar.exclusions=src/main/java/com/hedera/services/** \ No newline at end of file