line_forbidden.patterns (7474B)
1 # reject `m_data` as VxWorks defined it and that breaks things if it's used elsewhere 2 # see [fprime](https://github.com/nasa/fprime/commit/d589f0a25c59ea9a800d851ea84c2f5df02fb529) 3 # and [Qt](https://github.com/qtproject/qt-solutions/blame/fb7bc42bfcc578ff3fa3b9ca21a41e96eb37c1c7/qtscriptclassic/src/qscriptbuffer_p.h#L46) 4 #\bm_data\b 5 6 # Were you debugging using a framework with `fit()`? 7 # If you have a framework that uses `it()` for testing and `fit()` for debugging a specific test, 8 # you might not want to check in code where you skip all the other tests. 9 #\bfit\( 10 11 # Should be `HH:MM:SS` 12 \bHH:SS:MM\b 13 14 # Should be `86400` (seconds in a standard day) 15 \b84600\b(?:.*\bday\b) 16 17 # Should probably be `2006-01-02` (yyyy-mm-dd) 18 # Assuming that the time is being passed to https://go.dev/src/time/format.go 19 \b2006-02-01\b 20 21 # Should probably be `YYYYMMDD` 22 \b[Yy]{4}[Dd]{2}[Mm]{2}(?!.*[Yy]{4}[Dd]{2}[Mm]{2}).*$ 23 24 # Should be `a priori` or `and prior` 25 (?i)(?<!posteriori)\sand priori\s 26 27 # Should only be one of `a`, `an`, or `the` 28 \b(?:(?:an?|the)\s+){2,}\b 29 30 # Should be `anymore` 31 \bany more[,.] 32 33 # Should be `'` 34 (?i)\b(?:(?:i|s?he|they|what|who|you)"ll|(?:are|ca|did|do|does|ha[ds]|have|is|should|were|wo|would)n"t|(?:s?he|let|that|there|what|where|who)"s|(?:i|they|we|what|who|you)"ve)\b 35 36 # Should be `briefcase` 37 \bbrief-case\b 38 39 # Should be `can, not only ..., ... also...` 40 \bcan not only.*can also\b 41 42 # Should be `cannot` (or `can't`) 43 # See https://www.grammarly.com/blog/cannot-or-can-not/ 44 # > Don't use `can not` when you mean `cannot`. The only time you're likely to see `can not` written as separate words is when the word `can` happens to precede some other phrase that happens to start with `not`. 45 # > `Can't` is a contraction of `cannot`, and it's best suited for informal writing. 46 # > In formal writing and where contractions are frowned upon, use `cannot`. 47 # > It is possible to write `can not`, but you generally find it only as part of some other construction, such as `not only . . . but also.` 48 # - if you encounter such a case, add a pattern for that case to patterns.txt. 49 \b[Cc]an not\b 50 51 # Do not use `(click) here` links 52 # For more information, see: 53 # * https://www.w3.org/QA/Tips/noClickHere 54 # * https://webaim.org/techniques/hypertext/link_text 55 # * https://granicus.com/blog/why-click-here-links-are-bad/ 56 # * https://heyoka.medium.com/dont-use-click-here-f32f445d1021 57 (?:>|\[)(?:(?:click |)here|link|(?:read |)more)(?:</|\]\()(?!value>) 58 59 # Should be `equals` to `is equal to` 60 \bequals to\b 61 62 # Should be `GitHub` 63 (?<![&*.]|// |\b(?:from|import|type) )\bGithub\b(?![{()]) 64 65 # Should be `GitLab` 66 (?<![&*.]|// |\b(?:from|import|type) )\bGitlab\b(?![{()]) 67 68 # Should probably be `https://`... 69 # Markdown generally doesn't assume that links are to urls 70 \]\(www\.\w 71 72 # Should be `JavaScript` 73 \bJavascript\b 74 75 # Should be `macOS` or `Mac OS X` or ... 76 \bMacOS\b 77 78 # Should be `Microsoft` 79 \bMicroSoft\b 80 81 # Should be `OAuth` 82 (?:^|[^-/*$])[ '"]oAuth(?: [a-z]|\d+ |[^ a-zA-Z0-9:;_.()]) 83 84 # Should be `RabbitMQ` 85 \bRabbitmq\b 86 87 # Should be `TypeScript` 88 \bTypescript\b 89 90 # Should be `another` 91 \ban[- ]other\b 92 93 # Should be `case-(in)sensitive` 94 \bcase (?:in|)sensitive\b 95 96 # Should be `coinciding` 97 \bco-inciding\b 98 99 # Should be `deprecation warning(s)` 100 \b[Dd]epreciation [Ww]arnings?\b 101 102 # Should be `greater than` 103 \bgreater then\b 104 105 # Should be `has` 106 \b[Ii]t only have\b 107 108 # Should be `here-in`, `the`, `them`, `this`, `these` or reworded in some other way 109 \bthe here(?:\.|,| (?!and|defined)) 110 111 # Should be `greater than` 112 #\bhigher than\b 113 114 # Should be `ID` 115 #\bId\b 116 117 # Should be `in front of` 118 \bin from of\b 119 120 # Should be `into` 121 # when not phrasal and when `in order to` would be wrong: 122 # https://thewritepractice.com/into-vs-in-to/ 123 #\sin to\s(?!if\b) 124 125 # Should be `use` 126 \sin used by\b 127 128 # Should be `is obsolete` 129 \bis obsolescent\b 130 131 # Should be `it's` or `its` 132 \bits['’] 133 134 # Should be `its` 135 \bit's(?= own\b) 136 137 # Should be `log in` 138 \blogin to the 139 140 # Should be `long-standing` 141 \blong standing\b 142 143 # Should probably be a person named `Nick` or the abbreviation `NIC` 144 \bNic\b 145 146 # Should be `not supposed` 147 \bsupposed not\b 148 149 # Should probably be `much more` 150 \bmore much\b 151 152 # Should be `perform its` 153 \bperform it's\b 154 155 # Should be `opt-in` 156 #(?<!\scan|for)(?<!\sif)\sopt in\s 157 158 # Should be `less than` 159 \bless then\b 160 161 # Should be `load balancer` 162 \b[Ll]oud balancer 163 164 # Should be `moot` 165 \bmute point\b 166 167 # Should be `one of` 168 (?<!-)\bon of\b 169 170 # Should be `on the other hand` 171 \b(?i)on another hand\b 172 173 # Most people only have two hands. Reword. 174 \b(?i)on the third hand\b 175 176 # Should be `otherwise` 177 \bother[- ]wise\b 178 179 # Should be `or (more|less)` 180 \bore (?:more|less)\b 181 182 # Should be `rather than` 183 \brather then\b 184 185 # Should be `regardless, ...` or `regardless of (whether)` 186 \b[Rr]egardless if you\b 187 188 # Should be `no longer needed` 189 \bno more needed\b(?! than\b) 190 191 # Should be `did not exist` 192 \bwere not existent\b 193 194 # Should be `nonexistent` 195 \bnon existing\b 196 197 # Should be `nonexistent` 198 \b[Nn]o[nt][- ]existent\b 199 200 # Should be `@brief` / `@details` / `@param` / `@return` / `@retval` 201 (?:^\s*|(?:\*|//|/*)\s+`)[\\@](?:breif|(?:detail|detials)|(?:params(?!\.)|prama?)|ret(?:uns?)|retvl)\b 202 203 # Should be `preexisting` 204 [Pp]re[- ]existing 205 206 # Should be `preempt` 207 [Pp]re[- ]empt\b 208 209 # Should be `preemptively` 210 [Pp]re[- ]emptively 211 212 # Should be `prepopulate` 213 [Pp]re[- ]populate 214 215 # Should be `prerequisite` 216 [Pp]re[- ]requisite 217 218 # Should be `recently changed` or `recent changes` 219 [Rr]ecent changed 220 221 # Should be `reentrancy` 222 [Rr]e[- ]entrancy 223 224 # Should be `reentrant` 225 [Rr]e[- ]entrant 226 227 # Should be `strong suit` 228 \b(?:my|his|her|their) strong suite\b 229 230 # Should be `understand` 231 \bunder stand\b 232 233 # Should be `URI` or `uri` unless it refers to a person named `Uri` 234 #(?<!\.)\bUri\b(?![(]) 235 236 # Should be `it uses is` 237 /\bis uses is\b/ 238 239 # Should be `uses it as` 240 (?:^|\. |and )uses is as (?!an?\b|follows|livestock|[^.]+\s+as\b) 241 242 # Should be `was` 243 \bhas been(?= removed in v?\d) 244 245 # Should be `where` 246 \bwere they are\b 247 248 # should be `vCenter` 249 \bV[Cc]enter\b 250 251 # Should be `VM` 252 \bVm\b 253 254 # Should be `workarounds` 255 #\bwork[- ]arounds\b 256 257 # Should be `workaround` 258 (?:(?:[Aa]|[Tt]he|ugly)\swork[- ]around\b|\swork[- ]around\s+for) 259 260 # Should be `worst` 261 (?i)worse-case 262 263 # Should be `you are not` or reworded 264 \byour not\b 265 266 # Should be `(coarse|fine)-grained` 267 \b(?:coarse|fine) grained\b 268 269 # Homoglyph (Cyrillic) should be `A`/`B`/`C`/`E`/`H`/`I`/`I`/`J`/`K`/`M`/`O`/`P`/`S`/`T`/`Y` 270 # It's possible that your content is intentionally mixing Cyrllic and Latin scripts, but if it isn't, you definitely want to correct this. 271 (?<=[A-Z]{2})[АВСЕНІӀЈКМОРЅТУ]|[АВСЕНІӀЈКМОРЅТУ](?=[A-Z]+(?:\b|[a-z]+)|[a-z]+(?:[^a-z]|$)) 272 273 # Homoglyph (Cyrillic) should be `a`/`b`/`e` 274 # It's possible that your content is intentionally mixing Cyrllic and Latin scripts, but if it isn't, you definitely want to correct this. 275 [аве](?=[A-Za-z]{2,})|(?<=[A-Za-z]{2})[аве]|(?<=[A-Za-z])[аве](?=[A-Za-z]) 276 277 # Should be `neither/nor` -- or reword 278 #(?!<do )\bnot\b([^.?!"/(](?!neither|,.*?,))+\bnor\b 279 280 # Should be `neither/nor` (plus rewording the beginning) 281 # This is probably a double negative... 282 #\bnot\b[^.?!"/(]*\bneither\b[^.?!"/(]*\bnor\b 283 284 # In English, duplicated words are generally mistakes 285 # There are a few exceptions (e.g. "that that"). 286 # If the highlighted doubled word pair is in: 287 # * code, write a pattern to mask it. 288 # * prose, have someone read the English before you dismiss this error. 289 \s([A-Z]{3,}|[A-Z][a-z]{2,}|[a-z]{3,})\s\g{-1}\s