1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
- repo: git://github.com/pre-commit/pre-commit-hooks
sha: 'v0.5.1'
hooks:
- id: check-merge-conflict
- id: end-of-file-fixer
files: '(\.(go|md|sh|yml|yaml|json|ini|rst)|Dockerfile.*)$'
exclude: '^vendor/'
- id: trailing-whitespace
files: '(\.(go|md|sh|yml|yaml|json|ini|rst)|Dockerfile.*)$'
args: ['--no-markdown-linebreak-ext']
exclude: '^vendor/'
- id: check-yaml
exclude: '^vendor/'
- id: check-json
exclude: '^vendor/'
- repo: git://github.com/dnephin/pre-commit-golang
sha: HEAD
hooks:
- id: go-fmt
exclude: '^vendor/'
args: ['-s']
- id: go-lint
exclude: '^(vendor/|schema/bindata\.go)'
- id: go-vet
exclude: '^vendor/'
|