From 2292f3878b01b323af6cf9a822be3b230ce5b99b Mon Sep 17 00:00:00 2001 From: Managor <42655600+Managor@users.noreply.github.com> Date: Tue, 6 Jan 2026 20:12:07 +0200 Subject: [PATCH] scripts/check-errors: update script with more tests (#20550) --- scripts/check-errors.sh | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/scripts/check-errors.sh b/scripts/check-errors.sh index d24e133964..6bcfbb0ec9 100755 --- a/scripts/check-errors.sh +++ b/scripts/check-errors.sh @@ -66,17 +66,34 @@ tput setaf 5 echo echo Imperative mood tput sgr0 +grep -r Calculates +grep -r Captures +grep -r Checks +grep -r Controls grep -r Converts grep -r Deploys grep -r Displays +grep -r Enables +grep -r Encodes +grep -r Evaluates grep -r Executes +grep -r Extracts grep -r Generates grep -r Gets grep -r Initializes +grep -r Inspects grep -r Launches +grep -r Manages +grep -r Performs +grep -r Prints +grep -r Publishes grep -r Queries grep -r Resolves grep -r Restarts +grep -r Scans +grep -r Sets +grep -r Starts +grep -r Stops tput setaf 5 echo @@ -85,7 +102,10 @@ tput sgr0 grep -r … grep -r – grep -r — +grep -r "´" +grep -r "‘" grep -r "’" +grep -r '“' grep -r '”' grep -r \`\` grep -r $'\u00A0' @@ -95,7 +115,20 @@ grep -r $'\u200C' grep -r $'\u200D' grep -r $'\u200F' grep -r $'\u202F' +grep -r $'\u3000' grep -r $'\uFEFF' +grep -r « +grep -r » + +tput setaf 5 +echo +echo Punctuation +tput sgr0 +grep -r "\.\.$" +grep -r "::$" +grep -r " ।$" +grep -r " :$" +grep -r " 。" tput setaf 5 echo @@ -123,3 +156,5 @@ echo echo Use of apostrophe instead of backtick tput sgr0 grep -vr ^\` | grep "'[a-zA-Z][a-zA-Z]*'" + +echo