1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2024-12-27 01:33:39 +02:00
goreleaser/scripts/pre-commit.sh
Carlos Alexandro Becker e661f22993
fix: pre-commit hook (#2849)
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-01-26 22:12:02 -03:00

8 lines
133 B
Bash
Executable File

#!/bin/bash
FILES=$(git diff --cached --name-only --diff-filter=ACMR)
gofumpt -l -w .
golangci-lint run --new --fix
git add $FILES