From fb04ac95ca442a717b384ebe4a585aac37d2a657 Mon Sep 17 00:00:00 2001 From: Bartek Tofel Date: Fri, 23 Aug 2024 16:08:21 +0200 Subject: [PATCH] exclude .abi and .bin files from precommit check --- .pre-commit-config.yaml | 2 ++ sonar-project.properties | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4cec0df13..1ab5c757a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,3 +1,5 @@ +exclude: '(\.bin|\.abi)' + repos: - repo: local hooks: diff --git a/sonar-project.properties b/sonar-project.properties index ca3a4b366..cda9a3aab 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -3,7 +3,7 @@ sonar.sources=. sonar.python.version=3.8 # Full exclusions from the static analysis -sonar.exclusions=**/docs/**/*, **/*.pb.go, **/*report.xml **/*.txt, **/*.abi, **/*.bin, **/*_codecgen.go. seth/contracts/**, seth/examples*/** +sonar.exclusions=**/docs/**/*, **/*.pb.go, **/*report.xml **/*.txt, **/*.abi, **/*.bin, **/*_codecgen.go, seth/contracts/**, seth/examples*/** # Coverage exclusions sonar.coverage.exclusions=**/*, **/*.* # Duplication exclusions