1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-04 07:03:39 +08:00

Add scripts for running inspections locally

This commit is contained in:
smoogipoo
2021-06-15 22:40:31 +09:00
Unverified
parent 9fcf105364
commit a4c4867d6a
3 changed files with 18 additions and 9 deletions
+11
View File
@@ -0,0 +1,11 @@
dotnet tool restore
# Temporarily disabled until the tool is upgraded to 5.0.
# The version specified in .config/dotnet-tools.json (3.1.37601) won't run on .NET hosts >=5.0.7.
# - cmd: dotnet format --dry-run --check
dotnet CodeFileSanity
dotnet jb inspectcode "osu.Desktop.slnf" --output="inspectcodereport.xml" --caches-home="inspectcode" --verbosity=WARN
dotnet nvika parsereport "inspectcodereport.xml" --treatwarningsaserrors
exit $LASTEXITCODE
Executable
+6
View File
@@ -0,0 +1,6 @@
#!/bin/bash
dotnet tool restore
dotnet CodeFileSanity
dotnet jb inspectcode "osu.Desktop.slnf" --output="inspectcodereport.xml" --caches-home="inspectcode" --verbosity=WARN
dotnet nvika parsereport "inspectcodereport.xml" --treatwarningsaserrors
+1 -9
View File
@@ -20,15 +20,7 @@ build:
publish_nuget: true
after_build:
- cmd: dotnet tool restore
# Temporarily disabled until the tool is upgraded to 5.0.
# The version specified in .config/dotnet-tools.json (3.1.37601) won't run on .NET hosts >=5.0.7.
# - cmd: dotnet format --dry-run --check
- cmd: dotnet CodeFileSanity
- cmd: dotnet jb inspectcode "osu.Desktop.slnf" --output="temp/inspectcodereport.xml" --caches-home="temp/inspectcode" --verbosity=WARN
- cmd: dotnet nvika parsereport "temp/inspectcodereport.xml" --treatwarningsaserrors
- ps: .\InspectCode.ps1
test:
assemblies: