Skip to content
This repository has been archived by the owner on Nov 15, 2024. It is now read-only.
/ git-hooks Public archive
forked from syntaqx/git-hooks

A collection of git hooks for use with pre-commit

License

Notifications You must be signed in to change notification settings

ls-jad-elkik/git-hooks

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git-hooks

CircleCI

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 - Runs go fmt and asserts no changes are needed.
  • go-test - Runs go test and asserts no tests are failing.
  • go-mod-tidy - Runs go mod tidy and asserts all dependencies have been added.
  • go-generate - Runs go generate aginst the projects go files.
  • shellcheck - Run shellcheck against scripts.
  • shfmt - Run shfmt against scripts.

Configure pre-commit

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

- repo: https://github.com/syntaqx/git-hooks
  rev: v0.0.16
  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.

About

A collection of git hooks for use with pre-commit

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%