Skip to content

Commit

Permalink
Works with SonarQube now
Browse files Browse the repository at this point in the history
  • Loading branch information
nightblade9 committed May 25, 2023
1 parent 2c7cf97 commit 5e33e6b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -403,5 +403,8 @@ FodyWeavers.xsd


##### custom stuff
# publishing ips
*.zip
# publishing zips
*.zip
# sonarz
.sonarqube
sonarToken.txt
8 changes: 8 additions & 0 deletions source/sonar.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
$sonarToken = [System.IO.File]::ReadAllText("sonarToken.txt")

dotnet sonarscanner begin /k:"Hybrid" /d:sonar.host.url="http://localhost:9000" /d:sonar.login=$sonarToken

dotnet build --no-incremental
dotnet test

dotnet sonarscanner end /d:sonar.login=$sonarToken

0 comments on commit 5e33e6b

Please sign in to comment.