-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathrecheck.yaml
More file actions
267 lines (255 loc) · 6.31 KB
/
recheck.yaml
File metadata and controls
267 lines (255 loc) · 6.31 KB
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
recheck/us-spelling:
scope: all # default
severity: error
message: 'Use the US spelling "%s" instead of British "%s".'
link: https://docs.microsoft.com/en-us/style-guide/word-choice/use-us-spelling-avoid-non-english-words
assertions:
swap:
ignoreCase: true
wordBoundary: true
pairs:
aeon: eon
aeroplane: airplane
ageing: aging
aluminium: aluminum
anaemia: anemia
anaesthesia: anesthesia
analyse: analyze
annexe: annex
apologise: apologize
behaviour: behavior
busses: buses
calibre: caliber
cancelled: canceled
cancellation: cancelation
catalogue: catalog
categorise: categorize
categorised: categorized
categorises: categorizes
categorising: categorizing
centre: center
cheque: check
civilisation: civilization
civilise: civilize
colour: color
cosy: cozy
cypher: cipher
dependant: dependent
defence: defense
distil: distill
draught: draft
encyclopaedia: encyclopedia
enquiry: inquiry
enrol: enroll
enrolment: enrollment
enthral: enthrall
expiry: expiration
favourite: favorite
fibre: fiber
fillet: filet
flavour: flavor
furore: furor
fulfil: fulfill
gaol: jail
grey: gray
humour: humor
honour: honor
initialled: initialed
initialling: initialing
instil: instill
jewellery: jewelry
labelling: labeling
labelled: labeled
labour: labor
libellous: libelous
licence: license
likeable: likable
liveable: livable
lustre: luster
manoeuvre: maneuver
marvellous: marvelous
matt: matte
meagre: meager
metre: meter
modelling: modeling
moustache: mustache
neighbour: neighbor
normalise: normalize
offence: offense
organise: organize
organisation: organization
orientated: oriented
paralyse: paralyze
plough: plow
pretence: pretense
programme: program
pyjamas: pajamas
rateable: ratable
realise: realize
recognise: recognize
reconnoitre: reconnoiter
rumour: rumor
sabre: saber
saleable: salable
saltpetre: saltpeter
sceptic: skeptic
sepulchre: sepulcher
signalling: signaling
sizeable: sizable
skilful: skillful
sombre: somber
smoulder: smolder
speciality: specialty
spectre: specter
splendour: splendor
standardise: standardize
standardised: standardized
sulphur: sulfur
theatre: theater
travelled: traveled
traveller: traveler
travelling: traveling
unshakeable: unshakable
wilful: willful
yoghurt: yogurt
exceptions:
files:
- docs/public/branding/**
- docs/redoc-ce/@v3.x/deployment/html.md
- docs/public/customization/react-components/list/tag.md
# lines:
# - "test this functionality"
recheck/inclusion-gender-culture:
severity: error
message: 'Use inclusive language. Consider "%s" instead of "%s".'
assertions:
swap:
he: they
his: their
she: they
hers: their
blacklist(?:ed|ing|s)?: blocklist
whitelist(?:ed|ing|s)?: allowlist
master: primary, main
slave: replica
he/she: they
s/he: they
recheck/no-gerund-headings:
severity: error
scope: heading
message: 'Do not start headings with a gerund.'
assertions:
pattern:
ignoreCase: true
tokens:
- "^#+ \\w*ing\\b"
exceptions:
lines:
- According
- Betting
- Billing
- Branding
- Breaking
- Dogfooding
- Engineering
- Hiring
- Hosting
- Landing
- Marketing
- Monitoring
- Naming
- Onboarding
- Packaging
- Pricing
- Reasoning
- Recruiting
- Reporting
- Settings
- Training
- Troubleshooting
- Testing
- Writing
- hideLoading
- Routing
- Naming
# files:
# - todo
recheck/oxford-comma:
severity: error
scope: sentence
message: "Use the Oxford comma in '%s'."
assertions:
pattern:
tokens:
- '(?:[^\s,]+,){1,} \w+ (?:and|or) \w+[.?!]'
recheck/readable-line-length:
severity: warn
message: 'Keep lines under %s characters.'
assertions:
max-line-length:
maxLength: 400
ignoreCodeBlocks: true
ignoreTables: true
ignoreHtmlTags: true
ignoreMarkdownLinkUrls: true
recheck/no-trailing-spaces:
severity: error
message: 'Remove trailing spaces.'
autoFixable: true
assertions:
no-trailing-spaces:
skipCodeBlocks: true
skipBlankLines: false
recheck/bullet-style-dash:
severity: error
message: "Use '-' for unordered list bullets."
autoFixable: true
assertions:
bullet-style:
style: '-'
normalizeNested: true
recheck/semantic-line-breaks:
severity: error
message: 'Use semantic line breaks (%s mode).'
autoFixable: true # Thoroughly tested
assertions:
semantic-line-breaks:
mode: sentence
ignoreCodeBlocks: true
ignoreTables: true
recheck/no-hard-tabs:
severity: error
message: 'Use spaces instead of tabs.'
autoFixable: true
assertions:
no-hard-tabs:
skipCodeBlocks: true
spacesPerTab: 2
recheck/no-duplicate-headings:
severity: warn
message: 'Duplicate heading "%s" (first used on line %d).'
assertions:
no-duplicate-headings:
caseSensitive: false
ignoreCommonHeadings: false
respectSections: true # Default: don't flag duplicates in different sections
recheck/no-broken-fragment-links:
severity: error
message: 'Broken link fragment: %s'
assertions:
no-broken-fragment-links:
checkExternalFiles: true
exceptions:
lines:
- '#stage-3.-offer'
- '#3.-hr-interview'
- '#input/output-types'
files:
- '**/_partials/**'
recheck/optimize-images:
severity: error
message: 'Image too large: %s'
assertions:
max-image-size:
maxSizeKB: 100
extensions: ['jpg', 'jpeg', 'png', 'gif', 'webp', 'svg']