mirror of
https://github.com/ppy/osu.git
synced 2025-02-11 05:03:14 +08:00
Add dotnet format check.
This commit is contained in:
parent
e9b8cbb516
commit
d385862267
@ -7,6 +7,12 @@
|
|||||||
"commands": [
|
"commands": [
|
||||||
"dotnet-cake"
|
"dotnet-cake"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"dotnet-format": {
|
||||||
|
"version": "3.1.37601",
|
||||||
|
"commands": [
|
||||||
|
"dotnet-format"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -11,6 +11,7 @@ var target = Argument("target", "Build");
|
|||||||
var configuration = Argument("configuration", "Release");
|
var configuration = Argument("configuration", "Release");
|
||||||
|
|
||||||
var rootDirectory = new DirectoryPath("..");
|
var rootDirectory = new DirectoryPath("..");
|
||||||
|
var sln = rootDirectory.CombineWithFilePath("osu.sln");
|
||||||
var desktopBuilds = rootDirectory.CombineWithFilePath("build/Desktop.proj");
|
var desktopBuilds = rootDirectory.CombineWithFilePath("build/Desktop.proj");
|
||||||
var desktopSlnf = rootDirectory.CombineWithFilePath("osu.Desktop.slnf");
|
var desktopSlnf = rootDirectory.CombineWithFilePath("osu.Desktop.slnf");
|
||||||
|
|
||||||
@ -60,8 +61,12 @@ Task("CodeFileSanity")
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Task("DotnetFormat")
|
||||||
|
.Does(() => DotNetCoreTool(sln.FullPath, "format", "--dry-run --check"));
|
||||||
|
|
||||||
Task("Build")
|
Task("Build")
|
||||||
.IsDependentOn("CodeFileSanity")
|
.IsDependentOn("CodeFileSanity")
|
||||||
|
.IsDependentOn("DotnetFormat")
|
||||||
.IsDependentOn("InspectCode")
|
.IsDependentOn("InspectCode")
|
||||||
.IsDependentOn("Test");
|
.IsDependentOn("Test");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user