Skip to content

Commit bd517c5

Browse files
authored
Merge pull request #2074 from berryzplus/feature/use_sonar_project_properties
sonar-project-propertiesを使う
2 parents 5c8b6be + 493882f commit bd517c5

2 files changed

Lines changed: 21 additions & 9 deletions

File tree

.github/workflows/sonarscan.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,4 @@ jobs:
143143
.\.sonar\scanner\bin\sonar-scanner.bat `
144144
-D"sonar.organization=${{ github.repository_owner }}" `
145145
-D"sonar.projectKey=$('${{ github.repository }}' -replace '/', '_')" `
146-
-D"sonar.host.url=https://sonarcloud.io" `
147-
-D"sonar.sourceEncoding=UTF-8" `
148-
-D"sonar.sources=." `
149-
-D"sonar.cfamily.build-wrapper-output=bw-output" `
150-
-D"sonar.cfamily.cppunit.reportPath=tests1-googletest.xml" `
151-
-D"sonar.python.version=3" `
152-
-D"sonar.coverage.exclusions=help\**\*.js,tests\unittests\coverage.cpp,tests\stubs\**\*.cpp,tools\**\*.js" `
153-
-D"sonar.coverageReportPaths=tests1-coverage.xml" `
154-
-D"sonar.exclusions=.sonar\**\*,build\**\*,bw-output\**\*,HeaderMake\**\*,tests\googletest\**\,**\test-*,tests\stubs\**\*,tests*-*.xml*"
146+
-D"sonar.host.url=https://sonarcloud.io"

sonar-project.properties

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# this is *.properties file.
2+
# file encoding: ISO-8859
3+
4+
sonar.cfamily.build-wrapper-output=bw-output
5+
6+
sonar.cfamily.cppunit.reportPath=*-googletest.xml
7+
8+
sonar.coverage.exclusions=tools/**/*,tests/unittests/?Mock*.hpp,tests/unittests/code-main.cpp,tests/unittests/coverage.cpp
9+
10+
sonar.coverageReportPaths=tests1-coverage.xml
11+
12+
sonar.sourceEncoding=UTF-8
13+
14+
sonar.sources=.
15+
16+
sonar.exclusions=build/**/*,packages/**/*,HeaderMake/**/*,**/test-*,tests*-*.xml
17+
18+
sonar.python.version=3
19+
20+
sonar.verbose=true

0 commit comments

Comments
 (0)