Skip to content

Commit 8d63d57

Browse files
scripts/: add script to check common page errors (#19191)
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
1 parent 89add94 commit 8d63d57

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

scripts/check-errors.sh

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
#!/bin/bash
2+
3+
grep -r -- "{{\[.*\]}[^}]"
4+
grep -r -- "[^{]{\[.*\]}}"
5+
grep -rE "{{\[[a-z]\|--[a-z]+\]}}"
6+
grep -r "{{-[a-zA-Z][a-zA-Z]|-"
7+
grep -r "{{\[ "
8+
grep -r " ]}}"
9+
# shellcheck disable=SC2016
10+
find . -type f -print0 | xargs -0 awk '{ q=gsub(/"/,"&"); if(q % 2 != 0) print FILENAME ": " $0 }'
11+
grep -r "{{[^}]*{{"
12+
grep -r www.manned
13+
grep -r linux.org/docs
14+
grep -r linuxcommandlibrary
15+
grep -r /html_node/ | grep -v coreutils | grep -v emacs | grep -v grub
16+
grep -r "#>"
17+
grep -ri "check.* help"
18+
grep -r "?ref_type=heads"
19+
grep -r "?tab=readme-ov-file"
20+
grep -r "?utm_source=chatgpt.com"
21+
grep -r file_path
22+
grep -r http://target
23+
grep -r "directory/}}"
24+
grep -vr "^\`" | grep -i stdin | grep -v "\`stdin\`"
25+
grep -vr "^\`" | grep -i stderr | grep -v "\`stderr\`"
26+
grep -vr "^\`" | grep -i "standard out"
27+
grep -vr "^\`" | grep -i "standard in"
28+
grep -vr "^\`" | grep -i "standard err"
29+
grep -r Generates
30+
grep -r Resolves
31+
grep -r Displays
32+
grep -r Gets
33+
grep -r Restarts
34+
grep -r Executes
35+
grep -r Initializes
36+
grep -r Deploys
37+
grep -r Converts
38+
grep -r Launches
39+
grep -r —
40+
grep -r ""
41+
grep -r ''
42+
grep -ir initialise
43+
grep -ir licence
44+
grep -r "^-" | grep "{{"
45+
find . -type f -executable
46+
grep -vr ^\` | grep "'[a-zA-Z][a-zA-Z]*'"

0 commit comments

Comments
 (0)