Git pre-commit and pre-push actions

This commit is contained in:
Deukhoofd committed 2025-03-02 18:19:52 +01:00
1 parent 284ab3079c
commit 057d0a25e6
6 files changed
+4092 -598

No files matched your search

+31
View File
@@ -0,0 +1,31 @@
{
"$schema": "https://alirezanet.github.io/Husky.Net/schema.json",
"tasks": [
{
"name": "Run Tests",
"group": "pre-push",
"command": "dotnet",
"args": [
"test",
"PkmnLib.Tests/PkmnLib.Tests.csproj",
"--verbosity",
"minimal"
]
},
{
"name": "JB Code Style",
"group": "pre-commit",
"command": "dotnet",
"pathMode": "relative",
"filteringRule": "staged",
"args": [
"jb",
"cleanupcode",
"PkmnLib.NET.sln",
"--profile=Built-in: Reformat & Apply Syntax Style",
"--include=${args}"
],
"include": ["**/*.cs"]
}
]
}