Files
Maksim Kazantsev c0a81e99d2 ADG-12585 Upd all
* all: upd go; upd tools; upd chlog; upd scripts and hooks;

* make: fix script;

* make: fix script;

* make: upd docs; add todos;

* make: fix go-test;
2026-10-27 16:02:27 +03:00

30 lines
686 B
Bash
Executable File

#!/bin/sh
# This comment is used to simplify checking local copies of the script. Bump
# this number every time a significant change is made to this script.
#
# AdGuard-Project-Version: 7
set -e -f -o 'pipefail' -u
. ./scripts/hooks/helper.sh
# Warn the programmer about temporary todos and skel FIXMEs, but do not fail the
# commit, because the commit could be in a temporary branch.
temp_todos="$(
git grep -e 'FIXME' -e 'TODO.*!!' -- \
':!./scripts/hooks/pre-commit' \
':!./client' \
|| :
)"
readonly temp_todos
if [ "$temp_todos" != '' ]; then
printf 'WARNING: you have temporary todos:\n\n%s\n\n' "$temp_todos"
prompt
fi
check_unstaged_changes
lint_staged_changes