ci: suggest to use hidden_unless_forced() (#31321)

* ci: suggest to use hidden_unless_forced()

* shellcheck...
This commit is contained in:
Ryo Onodera 2023-04-25 09:43:42 +09:00 committed by GitHub
parent bd782634dc
commit 6f9a15c36b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -41,6 +41,12 @@ if _ git --no-pager grep -n "${prints[@]/#/-e}" -- "${print_free_tree[@]}"; then
exit 1
fi
# Ref: https://github.com/solana-labs/solana/pull/30843#issuecomment-1480399497
if _ git --no-pager grep -F '.hidden(true)' -- '*.rs'; then
echo 'use ".hidden(hidden_unless_forced())" instead'
exit 1
fi
# Github Issues should be used to track outstanding work items instead of
# marking up the code
#