-
Notifications
You must be signed in to change notification settings - Fork 1
/
err
executable file
·77 lines (74 loc) · 6.32 KB
/
err
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#!/bin/bash
opts='-niP'
for arg do
shift
if [ "$arg" = "-all" ] || [ "$arg" = "--all" ]; then
all_suffix='|'
continue
elif [ "$arg" = "-nn" ] || [ "$arg" = "--nn" ]; then
opts='-iP'
continue
fi
set -- "$@" "$arg"
done
grep --color=auto "$opts" \
\
\
'(trac(e|ing)|likely| debt|must|[a-z]+rupt(\b|ed|ing|ion[s]?|ive|ly|s))(?=\b|_)'\
\
\
'|(?<=\b|_)('\
\
'(de|in)[-]?activ|cease'\
\
'|in(termittent|terfer|vestigat|fect|finite|sane)'\
\
'|(in|un|im)[-_ ]?(perfect|practi|precis)'\
\
'|(un|im)[-_ ]?patie|implicat'\
\
'|(in[-]?|un[-_ ]?)(ability|accurate|advertent|capab|complet|correct|appropriate|secur|valid|certain|concern|consisten|suffici|adequate|effect|acces|def|declar|assign|hand|attach|mount|availab|reach|fortunat|support|known|respon|detect|suit|fit|see|found|notic|escap|qualif|finish|safe|guarantee|permit|free|releas|clear|flush|clean|sen[dt]|arriv|deliver|read|toleran|accept|authenti|authoriz|check|test|protect|intend|do|necessary|us(e|i|[- ]?abl)|desire|common|usual|equal|match|determin|success)'\
\
'|un[-_ ]?(ack((?=\b|_)|now)|add|allocat|announc|anticipa|(appl|notif|repl)(ied|y)|appear|boot|bound|calculat|collect|commit|config|conf[io]rm|connect|cop[iy]|consider|count|cover|creat|cut|decide|deploy|discover|dispatch|dis[-]?tin|distribut|do|edit|employ|fetch|filter|held|imagin|init|label[lie]?|launch|listen|manage|merg|foresee|function|occup|past[ie]|plan|pleasant|port|post|pre(par|dict|sent)|print|publish|pull|push|r[au]n|receiv[ie]|re[a-z]+|register|replicat|report|rout[ie]|sanitiz|satisf|save(?=\b|_)|scan|select|serv[ei]|set|signal|specif|solicit|start|store(?=\b|_)|submit|succe|suppl|t(ell|old)|tie|track|trans(fer|act|port)|travel|true|trust|up(dat|grad)[ei]|watch|welcom[ei]|wr(ite|ote|itten)|underst(and|ood)|want(ed)?|will|yield)'\
\
'|dis[-_ ]?a[-_ ]?[a-z]{2,}'\
\
'|dis[-_ ]?s(?!erta|em)[a-z]+'\
\
'|(dis)?mis[-_ ]?(?!c(?=\b|_)|sion|sy)'\
\
'|((re|un)[-_ ]?|in[-]?)block'\
\
'|(non|re|in|un)[-_ ]?log'\
\
'|(un|non)[-_ ]?(exist|quit|exit)|exist'\
\
'|ir[-]?re[a-z]+'\
\
'|dis(aster|card|gust|tast|turb|respect|tain|grac)|(?<!Content\-)dispos|dis[-]?(allow|favor|regard)|may (?!\d|take )|might (?!take )|bewar|broke((?=\b|_)|[^r])|in[-_ ]?compre|end[-_ ]?of|leak|contact|deprecat|obsolet|out(date|[t]?age)|perhaps|probabl|ambigu|obscur|reason|exclud|sacri|flaw|defect|stuck|occur|conf(us|lict)|too |ignor|skip|re(vert|set)|trial|roll[-_ ]?back|after[-_ ]free|(?<!/dev/)null|assert|vanish|de[ -]?referenc|defer|limit|abrup|sudden|issue(?!r)|over(?!view)|forc|catch|proper(?!ty|ties)|idiot|stupid|dull|asshole|notorious|culprit|craz|hard to|strugg|resist(?!or)|harm(?!less)|damag|nois[iey]|suppres|tir(ed|ing)|exhaust(ed|i)|fatigu[ie]|aggress|escalat|inver(ted|sion|ting)?|brut|heav[iy]|violat|violen|suffer|hurt|destr|collaps|spoil|taint|dr(ied|y)|burn|bloat|explod|escap|advising|advice|suppose|almost|intense|extrem|weak((?=\b|_)|er|est|ening)|fragil|slow|sluggi|smash|strik[ei]|decreas|declin|immed|oddly|strange|bizarre|peculiar|abnormal|underestimat|low|reduc|shr[iu]nk|truncat[ei]|backward|deauth|degrad|decommiss|demot|deplet|destab|hid(e|ing|den)|stumbl|remed|serious|impact|consequence|symptom|annoy|nuisanc|reluct|war[iy]|shock|omg|wtf|wth|damn|dumb[beis]?|frown|worr[iy]|concern|dia.?gnos|susp(icious|ect|end)|nothing|(abus|wast|futil|overcom)(ing|e|ed)|redundant|regard|hope|(point|use)[-]?less|encounter|re[-]?tr(ied|y)|illeg|improper|require(?!_once)|busy|exceed|surpass|full[^a-z]*([,.|])?$|constrain|(pro|in)hibit|need(?!itor)|down(?!load)|terminat(?!or)|mitigat|affect|complain|get rid |consult |orphan|zombie|anonymous|[cd]ve-|hijack|attack|infring|inva(si|de|di)|intru(si|de|di)|back[-_ ]?door|potential|vuln|virus|trojan|worm|bootkit|rootkit|offen[cs]|threat|st(eal|olen)|malicious|poison|foolish|compromis|spam|tamper|circumvent|bypass|spoof|fak(e|i)|stubborn|extinc|expos[ei]|risk|none|not[^aeiou]'\
\
')'\
\
\
'|(?<=\b|_)('\
\
'(un(?![-_ ]?(compress|confin|install|limit|pack|tar|zip))|non)[-_ ]?[\w-]*[-_ ]*(ed|able[d]?|ible[d]?)'\
\
'|(in(?!tro|ter|stru)|im)[-_ ]?[\w-]*[-_ ]*(able|ible)[d]?'\
\
'|except|errno|(un)[-_ ]?(core|met|sure[s]?)|may[-_ ]?be|greed[y]?|poor|inferior|burden|race|see|legacy|black[-_ ]?list(s|ed|ing)?|(stal[l]?|despair|suicid)(e|ed|ing)?|vague|than|[a-z]+ then |lack(s|ing| of)|work[-]?around|away(?! game)|off|empty|void|nowhere|absent|false|for more|during|but|still|never|against|nah|piss|shit|(rubbis|tras)h(es|s)?|(garbage|junk)[s]?|dirty|silly|mad|fac(e|es|ed|ing)|dramatically|temporarily|full (of|with) |out[-_ ]?of|bought|should|shall|otherwise|seem[s]|look[s]? *like|else|instead|rather|neither|nor|only|nearly|barely|gotcha|(rare|mere|scarce|hard|harsh)(ly)?|hit([-]?less|ting)?|rude|cruel|before|try again|g[ai]v(e|ing) up|weird|debate|creepy|highly|hot(?! plug)|blind[ein]?[a-z]*|upset|(where|when)(['"'"'’]| is | are | was | were | has | had | have| d(id|oes|o) | to | from )|why|(some)?how|couldnt|wouldnt|didnt|shouldnt|cant|wont|isnt|arent|wasnt|hasnt|without|pending|gone|old(er|est)?|mess(ing|ed)|rce|mitm|ddos|security hole|trap|nobody|nil|oh|(?<! -| --)no(?!-repeat)'\
\
')(?=\b|_)'\
\
\
'|\b\w*evil\w*\b'\
\
\
'|\b(?<![.])out\b'\
\
\
'|exception|throw|fatal|(?<![\s_-]pref)err(?!eq)|emerg|sever((?=\b|_)|e|[a-z]*ly)|alert|crit|warn|fail|stop|crash|(?<!au)die|dying|dead|death|doom|(?<!de)fault|oops|(?<!de)bug|kill|halt|bad(?!ge)|wors[et]|terrible|aw(ful|kward)|trouble| pain((?=\b|_)|e|i|n)|abort|abrt|caus(e|ing)|due[-_ ]?to|cautio|care|attention|mind|problem|dump|cannot|n['"'"'’]t|caught|over[-_ ]?flow(?!\.com)|over[-_ ]?he|flood|los[est]|block(ed|ing)|([^bc]|(?<=\b|_))lock|disco(?!ver)|clos(e|ing)|(?<!live|dis)patch|doubt|questionabl|possibl|expect(?!\-ct)|time[-_ ]?out|time['"'"'’]s |time (is |was )?up|expir|resolv(e|ing)|freez(e|ing)|den(ied|ial|y)|differ'\
\
'|((?<=\b|_)|un[-_ ]?)re[-]?(cover|scu|vo[ck]|ject|fus|stor|attempt)'\
\
'|(^\s+| |\t *|\t)(at|in)\s+|uaf|duplicate|panic|segv|sigseg|please|pl[sz]|already|violat|suck|fuck|(?<!s)hell(?!o)|sorry|difficult|danger|cident|night[ -]?mare| safer|prevent|(?<!w)avoid| late(?!ncy)|(?<!no)delay|(im|pre)mature|urgen[ct]| odd|wrong|f[ae]ll|abandon|inclin| sink|drop(?!box)|break|what |surpris|remov[aei](?!ble)|delet(e|ing)|chance|cancel|dangl[ei]|(?<!pre|post)fix|detach|colli[ds]|ban((?=\b|_)|ned)|forbid|experienc(e|ing)| h[au]ng|hack| sense|defunct|off[-_]?line|exploit|mal(ware|form|func)| lag((?=\b|_)|ging)|(?<!(/))\?|(?<!<|\[\s)!'"$all_suffix" "$@"