Skip to content

🍏Framework for managing and maintaining multi-language pre-commit hooks. It manages manages the installation and execution of any hook and not require root access

Notifications You must be signed in to change notification settings

iost-official/iost-pre-commit

Repository files navigation

pre-commit-golang

golang hooks for http://pre-commit.com/

Using these hooks

Add this to your .pre-commit-config.yaml

-   repo: https://github.com/iost-official/pre-commit-golang
    sha: HEAD
    hooks:
    -   id: go-fmt
    -   id: go-metalinter
        args:
        - --exclude=corefoundation.go
        - --deadline=60s
        - --vendor
        - --cyclo-over=20
        - --dupl-threshold=100

Available hooks

Metalinter

  • Runs on all files by default not just changed files (since the metalinter only operates on folders)
  • Use args to override default options

About

🍏Framework for managing and maintaining multi-language pre-commit hooks. It manages manages the installation and execution of any hook and not require root access

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages