github.com/alexey-mercari/reviewdog@v0.10.1-0.20200514053941-928943b10766/.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 "# reviewdog results" >> $1
     7  golangci-lint run --out-format=line-number --fast ./... | reviewdog -f=golangci-lint -diff="git diff @" >> $1