Skip to content

Forked dnephin/pre-commit-golang with additional hooks

License

Notifications You must be signed in to change notification settings

digitalstudium/pre-commit-golang

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

102 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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/digitalstudium/pre-commit-golang
  rev: v0.0.1
  hooks:
    - id: go-fmt
    - id: gofumpt
    - 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
    - id: revive
    - id: golines

Available hooks

About

Forked dnephin/pre-commit-golang with additional hooks

Resources

License

Stars

Watchers

Forks

Contributors

Languages

  • Shell 100.0%