Skip to content

manjunath-grl/pre-commit-hooks-dotnet-core

This branch is 6 commits ahead of kuju63/pre-commit-hooks-dotnet-core:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

db19d50 · Dec 13, 2022

History

13 Commits
Dec 13, 2022
Mar 12, 2020
Nov 12, 2022
Dec 13, 2022

Repository files navigation

pre-commit hooks for .NET Core

License: MIT Release

⚠️ Deprecated dotnet-formart has pre-commit hook configuration

pre-commit-hooks for .NET Core is pre-commit hooks for protecting beauty code.

These hooks are required dotnet and dotnet-format.

Using pre-commit-hooks-dotnet-core

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"]

Hooks available

dotnet-format

Format C# code and vb code. Using dotnet format command. This hook is required dotnet-format

dotnet-test

Execute dotnet test for protecting test failed.

  • -p

    Required argument Target test project or solution file path.

License

About

pre-commit hooks for .NET Core

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%