Pull request: all: imp hacking, hooks

Merge in DNS/adguard-home from imp-hacking to master

Squashed commit of the following:

commit fcc0740526948256b5b356a3a7969e00baa35ff7
Author: Ainar Garipov <A.Garipov@AdGuard.COM>
Date:   Mon Jun 28 18:16:57 2021 +0300

    all: imp hacking, hooks
This commit is contained in:
Ainar Garipov
2021-06-28 18:24:33 +03:00
parent 28f34ca399
commit 9d1656b5c1
2 changed files with 22 additions and 5 deletions

View File

@@ -2,6 +2,10 @@
set -e -f -u
# Show all temporary todos to the programmer but don't fail the commit
# if there are any, because the commit could be in a temporary branch.
git grep -e 'TODO.*!!' -- ':!HACKING.md' ':!scripts/hooks/pre-commit' | more || :
if [ "$( git diff --cached --name-only -- 'client/*.js' )" ]
then
make js-lint js-test