1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2024-12-31 01:53:50 +02:00
goreleaser/scripts/pre-commit.sh
Carlos Alexandro Becker 2a304f5932
chore: improve pre-commit
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-07-24 21:21:22 -03:00

8 lines
136 B
Bash
Executable File

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