|
5 | 5 | format: markdown
|
6 | 6 | errorMessage: "Megabytes should be either written as 'megabytes' or abbreviated as 'MB'"
|
7 | 7 |
|
8 |
| -# MHz / GHz spacing |
9 |
| -- regex: "(?<!\\S)\\b\\d+[MmGg][hH]z\\b" |
| 8 | +# MHz / GHz / kHz spacing |
| 9 | +- regex: "(?<!\\S)\\b\\d+[MmGgk][hH]z\\b" |
10 | 10 | shouldMatch: false
|
11 | 11 | type: warning
|
12 | 12 | format: markdown
|
|
19 | 19 | format: markdown
|
20 | 20 | errorMessage: "'Megahertz'/'Gigahertz' should be abbreviated as MHz/GHz"
|
21 | 21 |
|
| 22 | +# kHz spelling |
| 23 | +- regex: "(?<!\\S)\\b\\d+\\s?[Kk]hz\\b" |
| 24 | + shouldMatch: false |
| 25 | + type: warning |
| 26 | + format: markdown |
| 27 | + errorMessage: "'Kilohertz' should be abbreviated as kHz" |
| 28 | + |
22 | 29 | # Mbps / Gbps spacing
|
23 | 30 | - regex: "(?<!\\S)\\b\\d+[MG]bps\\b"
|
24 | 31 | shouldMatch: false
|
25 | 32 | type: warning
|
26 | 33 | format: markdown
|
27 | 34 | errorMessage: Space between unit and value required
|
28 | 35 |
|
29 |
| -# Mbps / Gbps spelling |
30 |
| -- regex: "(?<!\\S)\\b\\d+\\s?[mg]bps\\b" |
| 36 | +# Kbps/ Mbps / Gbps spelling |
| 37 | +- regex: "(?<!\\S)\\b\\d+\\s?[mgk]bps\\b" |
31 | 38 | shouldMatch: false
|
32 | 39 | type: warning
|
33 | 40 | format: markdown
|
34 |
| - errorMessage: "'Megabit per second' should be abbreviated Mbps, 'Gigabit per second' Gbps" |
| 41 | + errorMessage: "'Kilobit per second' should be abbreviated as Kbps, 'Megabit per second' as Mbps and 'Gigabit per second' Gbps" |
35 | 42 |
|
36 |
| -# kB / MB spacing |
37 |
| -- regex: "(?<!\\S)\\b\\d+[mMkK][bB]\\b" |
| 43 | +# kB / KB / Mb / MB / Gb / GB spacing |
| 44 | +- regex: "(?<!\\S)\\b\\d+[gBmMkK][bB]\\b" |
38 | 45 | shouldMatch: false
|
39 | 46 | type: warning
|
40 | 47 | format: markdown
|
|
47 | 54 | format: markdown
|
48 | 55 | errorMessage: "'Kilobyte' should be abbreviated as KB, 'Kilobit' as Kb."
|
49 | 56 |
|
50 |
| -# MB spelling |
| 57 | +# MB / Mb spelling |
51 | 58 | - regex: "(?<!\\S)\\b\\d+\\s?m[bB]\\b"
|
52 | 59 | shouldMatch: false
|
53 | 60 | type: warning
|
54 | 61 | format: markdown
|
55 | 62 | errorMessage: "'Megabyte' should be abbreviated as MB, 'Megabit' as Mb."
|
56 | 63 |
|
| 64 | +# GB / Gb spelling |
| 65 | +- regex: "(?<!\\S)\\b\\d+\\s?g[bB]\\b" |
| 66 | + shouldMatch: false |
| 67 | + type: warning |
| 68 | + format: markdown |
| 69 | + errorMessage: "'Gigabyte' should be abbreviated as GB, 'Gigabit' as Gb." |
| 70 | + |
57 | 71 | # μm / mm spacing
|
58 | 72 | - regex: "(?<!\\S)\\b\\d+[μm]m\\b"
|
59 | 73 | shouldMatch: false
|
|
0 commit comments