17 lines
339 B
Plaintext
17 lines
339 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
set -eo pipefail
|
||
|
|
||
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
|
||
|
CHANGESET=$(git diff --cached --name-only --diff-filter=ACM)
|
||
|
|
||
|
function lint_go_files {
|
||
|
echo "Linting modified Go files..."
|
||
|
( cd "$DIR/../.." && make LINT_ARGS="--new-from-rev=HEAD~ ./..." lint )
|
||
|
}
|
||
|
|
||
|
function main {
|
||
|
lint_go_files
|
||
|
}
|
||
|
|
||
|
main
|