github.com/khulnasoft/codebase@v0.0.0-20231214144635-a707781cbb24/.git_hooks/prepare-commit-msg (about)

     1  #!/bin/bash
     2  #
     3  # Append linter results at the bottom of commit message to check results on
     4  # commit.
     5  echo -e "# ------------------------ >8 ------------------------" >> $1
     6  echo -e "# codebase results" >> $1
     7  golangci-lint run --out-format=line-number --fast ./... | codebase -f=golangci-lint -diff="git diff @" >> $1