Skip to content
This repository was archived by the owner on Mar 12, 2025. It is now read-only.

dnephin/pre-commit-golang

Repository files navigation

pre-commit-golang

🚨 Please see the project sunsetting announcement: Issues/98 🚨


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

Using these hooks

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

- repo: https://github.com/dnephin/pre-commit-golang
  rev: master
  hooks:
    - id: go-fmt
    - id: go-vet
    - id: go-lint
    - id: go-imports
    - id: go-cyclo
      args: [-over=15]
    - id: validate-toml
    - id: no-go-testing
    - id: golangci-lint
    - id: go-critic
    - id: go-unit-tests
    - id: go-build
    - id: go-mod-tidy

Available hooks

About

Golang hooks for pre-commit

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages