Remove dotnet format from CI

This commit is contained in:
Huo Yaoyuan
2022-04-22 01:25:58 +08:00
parent 704771b31f
commit 535a6c9d68
4 changed files with 0 additions and 20 deletions

View File

@@ -8,12 +8,6 @@
"dotnet-cake" "dotnet-cake"
] ]
}, },
"dotnet-format": {
"version": "3.1.37601",
"commands": [
"dotnet-format"
]
},
"jetbrains.resharper.globaltools": { "jetbrains.resharper.globaltools": {
"version": "2022.1.0-eap10", "version": "2022.1.0-eap10",
"commands": [ "commands": [

View File

@@ -46,10 +46,6 @@ jobs:
done <<< $(dotnet codefilesanity) done <<< $(dotnet codefilesanity)
exit $exit_code exit $exit_code
# Temporarily disabled due to test failures, but it won't work anyway until the tool is upgraded.
# - name: .NET Format (Dry Run)
# run: dotnet format --dry-run --check
- name: InspectCode - name: InspectCode
run: dotnet jb inspectcode $(pwd)/osu-framework.Desktop.slnf --no-build --output="inspectcodereport.xml" --caches-home="inspectcode" --verbosity=WARN run: dotnet jb inspectcode $(pwd)/osu-framework.Desktop.slnf --no-build --output="inspectcodereport.xml" --caches-home="inspectcode" --verbosity=WARN

View File

@@ -1,9 +1,5 @@
dotnet tool restore 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 CodeFileSanity
dotnet jb inspectcode "osu-framework.Desktop.slnf" --no-build --output="inspectcodereport.xml" --caches-home="inspectcode" --verbosity=WARN dotnet jb inspectcode "osu-framework.Desktop.slnf" --no-build --output="inspectcodereport.xml" --caches-home="inspectcode" --verbosity=WARN
dotnet nvika parsereport "inspectcodereport.xml" --treatwarningsaserrors dotnet nvika parsereport "inspectcodereport.xml" --treatwarningsaserrors

View File

@@ -123,11 +123,6 @@ Task("CodeFileSanity")
}); });
}); });
// 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.
// Task("DotnetFormat")
// .Does(() => DotNetCoreTool(sln.FullPath, "format", "--dry-run --check"));
Task("PackFramework") Task("PackFramework")
.Does(() => { .Does(() => {
DotNetCorePack(frameworkProject.FullPath, new DotNetCorePackSettings{ DotNetCorePack(frameworkProject.FullPath, new DotNetCorePackSettings{
@@ -224,7 +219,6 @@ Task("Build")
.IsDependentOn("Clean") .IsDependentOn("Clean")
.IsDependentOn("DetermineAppveyorBuildProperties") .IsDependentOn("DetermineAppveyorBuildProperties")
.IsDependentOn("CodeFileSanity") .IsDependentOn("CodeFileSanity")
//.IsDependentOn("DotnetFormat") <- To be uncommented after fixing the task.
.IsDependentOn("InspectCode") .IsDependentOn("InspectCode")
.IsDependentOn("Test") .IsDependentOn("Test")
.IsDependentOn("DetermineAppveyorDeployProperties") .IsDependentOn("DetermineAppveyorDeployProperties")