git-hooks
                                
                                
                                
                                    git-hooks copied to clipboard
                            
                            
                            
                        A collection of git hooks for use with pre-commit
A collection of useful Git hooks for use with pre-commit.
Available hooks
circleci-config-validate- Test if the CircleCI config file is well formed.forbid-binary- Prevent binary files from being committed.go-fmt- Runsgo fmtand asserts no changes are needed.go-test- Runsgo testand asserts no tests are failing.go-mod-tidy- Runsgo mod tidyand asserts all dependencies have been added.go-generate- Runsgo generateaginst the projects go files.shellcheck- Runshellcheckagainst scripts.shfmt- Runshfmtagainst scripts.
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.
