Skip to content

Support for .NET Core linters? #1002

Closed
Closed

Description

@cgranade

Would it be possible to add .NET linters such as https://github.com/dotnet/format as hooks? I took a look at the advice in #926, but it wasn't clear to me the best way to add a hook for .NET Core executables such as dotnet-format. Thanks for the help!

Activity

  1. asottile commented on Apr 21, 2019

    @asottile
    Member

    yep!

    until there's core language support for .net things in pre-commit you can manage the installation separately and use a language: system hook -- something like:

    -   id: dotnet-format
        name: dotnet-format
        language: system
        entry: dotnet-format
        types: ['c#']

    it would be pretty cool to see core support for something like language: nuget or language: dotnet or something though, especially given the cross platform support :)

  2. asottile commented on Jun 9, 2019

    @asottile
    Member

    I'm adding docs on how to add a language: #1056

    thanks for the issue! hopefully one day we'll have support \o/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions