authelia/.github/pre-commit
Clément Michaud c511b3415a
build: disable pre-commit hook by env variable (#2887)
One can set the NO_HOOK env variable to avoid running the pre-commit
hook. It can be useful when performing large refactorings.
2022-03-02 00:10:15 +01:00

13 lines
175 B
Bash
Executable File

#!/bin/sh
if [[ ! -z "$NO_HOOK" ]]
then
exit 0
fi
. "$(dirname "$0")/_/husky.sh"
. "$(dirname "$0")/required-apps"
golangci-lint run -v --fix && \
cd web && ${PMGR} lint