2023-11-03 01:16:29 +08:00
|
|
|
|
# reject `m_data` as VxWorks defined it and that breaks things if it's used elsewhere
|
|
|
|
|
# see [fprime](https://github.com/nasa/fprime/commit/d589f0a25c59ea9a800d851ea84c2f5df02fb529)
|
|
|
|
|
# and [Qt](https://github.com/qtproject/qt-solutions/blame/fb7bc42bfcc578ff3fa3b9ca21a41e96eb37c1c7/qtscriptclassic/src/qscriptbuffer_p.h#L46)
|
2022-07-01 22:09:41 +08:00
|
|
|
|
# \bm_data\b
|
|
|
|
|
|
2022-11-30 03:41:22 +08:00
|
|
|
|
# If you have a framework that uses `it()` for testing and `fit()` for debugging a specific test,
|
|
|
|
|
# you might not want to check in code where you were debugging w/ `fit()`, in which case, you might want
|
|
|
|
|
# to use this:
|
|
|
|
|
#\bfit\(
|
|
|
|
|
|
2023-11-03 01:16:29 +08:00
|
|
|
|
# s.b. anymore
|
|
|
|
|
\bany more[,.]
|
|
|
|
|
|
2022-07-01 22:09:41 +08:00
|
|
|
|
# s.b. GitHub
|
2023-11-03 01:16:29 +08:00
|
|
|
|
(?<![&*.]|// |\btype )\bGithub\b(?![{)])
|
2022-07-01 22:09:41 +08:00
|
|
|
|
|
|
|
|
|
# s.b. GitLab
|
2023-11-03 01:16:29 +08:00
|
|
|
|
(?<![&*.]|// |\btype )\bGitlab\b(?![{)])
|
2022-07-01 22:09:41 +08:00
|
|
|
|
|
|
|
|
|
# s.b. JavaScript
|
|
|
|
|
\bJavascript\b
|
|
|
|
|
|
2023-11-03 01:16:29 +08:00
|
|
|
|
# s.b. macOS or Mac OS X or ...
|
|
|
|
|
\bMacOS\b
|
|
|
|
|
|
2022-07-01 22:09:41 +08:00
|
|
|
|
# s.b. Microsoft
|
|
|
|
|
\bMicroSoft\b
|
|
|
|
|
|
2023-11-03 01:16:29 +08:00
|
|
|
|
# s.b. TypeScript
|
|
|
|
|
\bTypescript\b
|
|
|
|
|
|
2022-07-01 22:09:41 +08:00
|
|
|
|
# s.b. another
|
2022-07-27 18:39:46 +08:00
|
|
|
|
\ban[- ]other\b
|
|
|
|
|
|
2023-11-03 01:16:29 +08:00
|
|
|
|
# s.b. deprecation warning
|
|
|
|
|
\b[Dd]epreciation [Ww]arnings?\b
|
|
|
|
|
|
2022-07-27 18:39:46 +08:00
|
|
|
|
# s.b. greater than
|
|
|
|
|
\bgreater then\b
|
|
|
|
|
|
2023-11-03 01:16:29 +08:00
|
|
|
|
# s.b. in front of
|
|
|
|
|
\bin from of\b
|
|
|
|
|
|
2022-11-30 03:41:22 +08:00
|
|
|
|
# s.b. into
|
2023-11-03 01:16:29 +08:00
|
|
|
|
# when not phrasal and when `in order to` would be wrong:
|
|
|
|
|
# https://thewritepractice.com/into-vs-in-to/
|
|
|
|
|
\sin to\s(?!if\b)
|
|
|
|
|
|
|
|
|
|
# s.b. is obsolete
|
|
|
|
|
\bis obsolescent\b
|
|
|
|
|
|
|
|
|
|
# s.b. it's or its
|
|
|
|
|
\bits['’]
|
2022-11-30 03:41:22 +08:00
|
|
|
|
|
|
|
|
|
# s.b. opt-in
|
2023-11-03 01:16:29 +08:00
|
|
|
|
(?<!\sfor)\sopt in\s
|
2022-11-30 03:41:22 +08:00
|
|
|
|
|
2022-07-27 18:39:46 +08:00
|
|
|
|
# s.b. less than
|
|
|
|
|
\bless then\b
|
2022-07-01 22:09:41 +08:00
|
|
|
|
|
2023-11-03 01:16:29 +08:00
|
|
|
|
# s.b. one of
|
|
|
|
|
\bon of\b
|
|
|
|
|
|
2022-07-01 22:09:41 +08:00
|
|
|
|
# s.b. otherwise
|
2022-07-27 18:39:46 +08:00
|
|
|
|
\bother[- ]wise\b
|
2022-07-01 22:09:41 +08:00
|
|
|
|
|
2023-11-03 01:16:29 +08:00
|
|
|
|
# s.b. or (more|less)
|
|
|
|
|
\bore (?:more|less)\b
|
|
|
|
|
|
2022-07-01 22:09:41 +08:00
|
|
|
|
# s.b. nonexistent
|
|
|
|
|
\bnon existing\b
|
2022-07-27 18:39:46 +08:00
|
|
|
|
\b[Nn]o[nt][- ]existent\b
|
2022-07-01 22:09:41 +08:00
|
|
|
|
|
2023-11-03 01:16:29 +08:00
|
|
|
|
# s.b. brief / details/ param / return / retval
|
|
|
|
|
(?:^\s*|(?:\*|//|/*)\s+`)[\\@](?:breif|(?:detail|detials)|(?:params(?!\.)|prama?)|ret(?:uns?)|retvl)\b
|
|
|
|
|
|
2022-07-01 22:09:41 +08:00
|
|
|
|
# s.b. preexisting
|
2022-11-30 03:41:22 +08:00
|
|
|
|
[Pp]re[- ]existing
|
|
|
|
|
|
|
|
|
|
# s.b. preempt
|
|
|
|
|
[Pp]re[- ]empt\b
|
2022-07-01 22:09:41 +08:00
|
|
|
|
|
|
|
|
|
# s.b. preemptively
|
2022-11-30 03:41:22 +08:00
|
|
|
|
[Pp]re[- ]emptively
|
|
|
|
|
|
2023-11-03 01:16:29 +08:00
|
|
|
|
# s.b. recently changed or recent changes
|
|
|
|
|
[Rr]ecent changed
|
|
|
|
|
|
2022-11-30 03:41:22 +08:00
|
|
|
|
# s.b. reentrancy
|
|
|
|
|
[Rr]e[- ]entrancy
|
|
|
|
|
|
|
|
|
|
# s.b. reentrant
|
|
|
|
|
[Rr]e[- ]entrant
|
|
|
|
|
|
2023-11-03 01:16:29 +08:00
|
|
|
|
# s.b. understand
|
|
|
|
|
\bunder stand\b
|
|
|
|
|
|
|
|
|
|
# s.b. workarounds
|
|
|
|
|
#\bwork[- ]arounds\b
|
|
|
|
|
|
|
|
|
|
# s.b. workaround
|
|
|
|
|
(?:(?:[Aa]|[Tt]he|ugly)\swork[- ]around\b|\swork[- ]around\s+for)
|
|
|
|
|
|
|
|
|
|
# s.b. (coarse|fine)-grained
|
|
|
|
|
\b(?:coarse|fine) grained\b
|
|
|
|
|
|
|
|
|
|
# s.b. neither/nor -- or reword
|
|
|
|
|
#\bnot\b[^.?!"/(]+\bnor\b
|
|
|
|
|
|
|
|
|
|
# probably a double negative
|
|
|
|
|
# s.b. neither/nor (plus rewording the beginning)
|
|
|
|
|
\bnot\b[^.?!"/]*\bneither\b[^.?!"/(]*\bnor\b
|
2022-07-01 22:09:41 +08:00
|
|
|
|
|
2023-11-03 01:16:29 +08:00
|
|
|
|
# In English, it is generally wrong to have the same word twice in a row without punctuation.
|
|
|
|
|
# Duplicated words are generally mistakes.
|
|
|
|
|
# There are a few exceptions where it is acceptable (e.g. "that that").
|
|
|
|
|
# If the highlighted doubled word pair is in a code snippet, you can write a pattern to mask it.
|
|
|
|
|
# If the highlighted doubled word pair is in prose, have someone read the English before you dismiss this error.
|
2022-07-01 22:09:41 +08:00
|
|
|
|
\s([A-Z]{3,}|[A-Z][a-z]{2,}|[a-z]{3,})\s\g{-1}\s
|