Skip to content

Commit cd4b5ce

Browse files
committed
Exclude global.json in sonar
1 parent ca4b2b6 commit cd4b5ce

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/sonar.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,15 @@ jobs:
5959
shell: powershell
6060
run: |
6161
# Start SonarCloud analysis
62-
.\.sonar\scanner\dotnet-sonarscanner begin /k:"Tsingis_bitcoin-web-api" /o:"tsingis" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.vscoveragexml.reportsPaths="coverage.xml" /d:sonar.scanner.scanAll=false
62+
.\.sonar\scanner\dotnet-sonarscanner begin `
63+
/k:"Tsingis_bitcoin-web-api" `
64+
/o:"tsingis" `
65+
/d:sonar.token="${{ secrets.SONAR_TOKEN }}" `
66+
/d:sonar.host.url="https://sonarcloud.io" `
67+
/d:sonar.cs.vscoveragexml.reportsPaths="coverage.xml" `
68+
/d:sonar.scanner.scanAll=false `
69+
/d:sonar.exclusions="global.json"
6370
dotnet build --no-incremental
6471
dotnet-coverage collect "dotnet test" -f xml -o "coverage.xml"
65-
.\.sonar\scanner\dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"
72+
.\.sonar\scanner\dotnet-sonarscanner end `
73+
/d:sonar.token="${{ secrets.SONAR_TOKEN }}"

0 commit comments

Comments
 (0)