Skip to content

Instantly share code, notes, and snippets.

@dnephin
Last active October 18, 2016 21:24
Show Gist options
  • Save dnephin/c7776ecb5cdcf02eb1a6 to your computer and use it in GitHub Desktop.
Save dnephin/c7776ecb5cdcf02eb1a6 to your computer and use it in GitHub Desktop.
docker engine pre-commit hooks
- repo: git://github.com/pre-commit/pre-commit-hooks
sha: 'v0.4.2'
hooks:
- id: check-merge-conflict
- id: end-of-file-fixer
files: '\.(go|md|sh|yml|yaml|Dockerfile|json|ini)$'
exclude: '^vendor/'
- id: trailing-whitespace
files: '\.(go|sh|yml|yaml|Dockerfile|json|ini)$'
exclude: '^vendor/'
- repo: git://github.com/dnephin/pre-commit-golang
sha: HEAD
hooks:
- id: go-fmt
args: ["-s"]
exclude: '^vendor/'
- id: go-lint
exclude: '^vendor/'
- id: go-vet
exclude: '^vendor/'
- id: validate-toml
- id: no-go-testing
files: 'integration-cli/.*\.go$'
exclude: 'integration-cli/check_test\.go$'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment