Skip to content

Commit 7d668f2

Browse files
authored
sonar: disable c/c++ scanning (#10033)
Fixes error in Sonar GitHub action: <img width="1645" alt="Screenshot 2024-04-23 at 17 46 01" src="https://github.com/ledgerwatch/erigon/assets/94537774/3833db1c-6a8a-4db2-8bb7-5de58b57e638">
1 parent ff05e20 commit 7d668f2

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

sonar-project.properties

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,19 @@ sonar.organization=ledgerwatch
33
sonar.projectName=erigon
44

55
sonar.sources=.
6-
sonar.exclusions=**/*.pb.go,cmd/rpcdaemon/graphql/graph/generated.go,erigon-lib/pedersen_hash/**
6+
sonar.exclusions=**/*.pb.go,cmd/rpcdaemon/graphql/graph/generated.go
77

88
sonar.tests=.
99
sonar.test.inclusions=**/*_test.go,tests/**
1010

1111
sonar.go.coverage.reportPaths=coverage-erigon.out,coverage-erigon-lib.out
12+
13+
# The only way to get an accurate analysis of C/C++/Objective-C files is
14+
# by using the SonarSource build-wrapper and setting the property "sonar.cfamily.build-wrapper-output"
15+
# or by using Clang Compilation Database and setting the property "sonar.cfamily.compile-commands".
16+
#
17+
# If you don't want to analyze C/C++/Objective-C files, then prevent them from being analyzed
18+
# by setting the following properties:
19+
sonar.c.file.suffixes=-
20+
sonar.cpp.file.suffixes=-
21+
sonar.objc.file.suffixes=-

0 commit comments

Comments
 (0)