Skip to content
This repository was archived by the owner on Oct 14, 2020. It is now read-only.

gabriel/pre-commit-golang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 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/gabriel/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

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages