From 6d2fae4d2749d893f5d027d5b4756e709a3847af Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sun, 11 Oct 2020 03:56:30 -0300 Subject: Decouple testing with Nix Use Nix for build isolation not for test running. --- scripts/assert-todos.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 scripts/assert-todos.sh (limited to 'scripts/assert-todos.sh') diff --git a/scripts/assert-todos.sh b/scripts/assert-todos.sh new file mode 100755 index 0000000..a59b4cd --- /dev/null +++ b/scripts/assert-todos.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash +set -Eeuo pipefail +cd "$(dirname "${BASH_SOURCE[0]}")" +cd ../ + +# shellcheck disable=2046 +if grep -R FIXME $(git ls-files) | \ + grep -Ev '^(vendor/|.git/|scripts/assert-todos.sh|templates)'; then + echo "Found dangling FIXME markers on the project." + echo "You should write them down properly on TODOs.org." + exit 1 +fi -- cgit v1.2.3