syntaqx / git-hooks

A collection of git hooks for use with pre-commit
MIT License
34 stars 17 forks source link
git git-hooks hooks linter pre-commit refactoring

git-hooks

pre-commit workflow

A collection of useful Git hooks for use with pre-commit.

Available hooks

Configure pre-commit

Create or append to your .pre-commit-config.yaml configuration:

- repo: https://github.com/syntaqx/git-hooks
  rev: v0.0.18
  hooks:
  - id: circleci-config-validate
  - id: forbid-binary
  - id: go-fmt
  - id: go-test
  - id: go-mod-tidy
  - id: go-generate
  - id: shellcheck
  - id: shfmt

License

git-hooks is open source software released under the MIT license.