From 75fd13de5d4ceb58b1dbf3d8408d4c43f7fce565 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Fri, 8 Nov 2019 09:40:25 -0700 Subject: [PATCH] Prevent ci/nits.sh from incorrectly nitting on ci/nits. (#6814) --- ci/nits.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/ci/nits.sh b/ci/nits.sh index 28f0f4afc2..b1c588b3a3 100755 --- a/ci/nits.sh +++ b/ci/nits.sh @@ -50,11 +50,13 @@ fi # marking up the code # # Ref: https://github.com/solana-labs/solana/issues/6474 +# +# shellcheck disable=1001 declare useGithubIssueInsteadOf=( - 'XXX' - 'TBD' - 'FIXME' - #'TODO' # TODO: Uncomment this line to disable TODOs + X\XX + T\BD + F\IXME + #T\ODO # TODO: Disable TODOs once all other TODOs are purged ) if _ git --no-pager grep -n --max-depth=0 "${useGithubIssueInsteadOf[@]/#/-e }" -- '*.rs' '*.sh' '*.md'; then @@ -63,6 +65,6 @@ fi # TODO: Remove this `git grep` once TODOs are banned above # (this command is only used to highlight the current offenders) -_ git --no-pager grep -n --max-depth=0 "-e TODO" -- '*.rs' '*.sh' || true +_ git --no-pager grep -n --max-depth=0 "-e TODO" -- '*.rs' '*.sh' '*.md' || true echo "^^^ +++" # END TODO