pre-commit-hooks for .NET Core is pre-commit hooks for protecting beauty code.
These hooks are required dotnet
and dotnet-format
.
Add this to your .pre-commit-config.yaml
- repo: https://github.com/KuriharaJun/pre-commit-hooks-dotnet-core
rev: feature-add-test
hooks:
- id: dotnet-format
- id: dotnet-test
args: ["Your project or Solution file path"]
Format C# code and vb code. Using dotnet format command
.
This hook is required dotnet-format
Execute dotnet test
for protecting test failed.
-
-p
Required argument Target test project or solution file path.