Prevent ci/nits.sh from incorrectly nitting on ci/nits. (#6814)
This commit is contained in:
parent
807af8670e
commit
75fd13de5d
12
ci/nits.sh
12
ci/nits.sh
|
@ -50,11 +50,13 @@ fi
|
||||||
# marking up the code
|
# marking up the code
|
||||||
#
|
#
|
||||||
# Ref: https://github.com/solana-labs/solana/issues/6474
|
# Ref: https://github.com/solana-labs/solana/issues/6474
|
||||||
|
#
|
||||||
|
# shellcheck disable=1001
|
||||||
declare useGithubIssueInsteadOf=(
|
declare useGithubIssueInsteadOf=(
|
||||||
'XXX'
|
X\XX
|
||||||
'TBD'
|
T\BD
|
||||||
'FIXME'
|
F\IXME
|
||||||
#'TODO' # TODO: Uncomment this line to disable TODOs
|
#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
|
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
|
# TODO: Remove this `git grep` once TODOs are banned above
|
||||||
# (this command is only used to highlight the current offenders)
|
# (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 "^^^ +++"
|
echo "^^^ +++"
|
||||||
# END TODO
|
# END TODO
|
||||||
|
|
Loading…
Reference in New Issue