Skip to content

Commit 7c6672e

Browse files
committed
Add more Vale rules corresponding to the Microsoft Style Guide.
1 parent 0c0afde commit 7c6672e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+2626
-16
lines changed

Diff for: oxygen-term-checker/AMPM.yml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
extends: existence
2+
message: Use 'AM' or 'PM' (preceded by a space).
3+
link: https://docs.microsoft.com/en-us/style-guide/a-z-word-list-term-collections/term-collections/date-time-terms
4+
level: error
5+
nonword: true
6+
tokens:
7+
- '\d{1,2}[AP]M'
8+
- '\d{1,2} ?[ap]m'
9+
- '\d{1,2} ?[aApP]\.[mM]\.'

Diff for: oxygen-term-checker/Accessibility.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
extends: existence
2+
message: "Don't use language (such as '%s') that defines people by their disability."
3+
link: https://docs.microsoft.com/en-us/style-guide/a-z-word-list-term-collections/term-collections/accessibility-terms
4+
level: suggestion
5+
ignorecase: true
6+
tokens:
7+
- a victim of
8+
- able-bodied
9+
- affected by
10+
- an epileptic
11+
- crippled
12+
- disabled
13+
- dumb
14+
- handicapped
15+
- handicaps
16+
- healthy
17+
- lame
18+
- maimed
19+
- missing a limb
20+
- mute
21+
- normal
22+
- sight-impaired
23+
- stricken with
24+
- suffers from
25+
- vision-impaired

Diff for: oxygen-term-checker/Adverbs.yml

+270
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,270 @@
1+
extends: existence
2+
message: "Consider removing '%s'."
3+
link: https://docs.microsoft.com/en-us/style-guide/word-choice/use-simple-words-concise-sentences
4+
ignorecase: true
5+
level: warning
6+
action:
7+
name: remove
8+
tokens:
9+
- abnormally
10+
- absentmindedly
11+
- accidentally
12+
- adventurously
13+
- anxiously
14+
- arrogantly
15+
- awkwardly
16+
- bashfully
17+
- beautifully
18+
- bitterly
19+
- bleakly
20+
- blindly
21+
- blissfully
22+
- boastfully
23+
- boldly
24+
- bravely
25+
- briefly
26+
- brightly
27+
- briskly
28+
- broadly
29+
- busily
30+
- calmly
31+
- carefully
32+
- carelessly
33+
- cautiously
34+
- cheerfully
35+
- cleverly
36+
- closely
37+
- coaxingly
38+
- colorfully
39+
- continually
40+
- coolly
41+
- courageously
42+
- crossly
43+
- cruelly
44+
- curiously
45+
- daintily
46+
- dearly
47+
- deceivingly
48+
- deeply
49+
- defiantly
50+
- deliberately
51+
- delightfully
52+
- diligently
53+
- dimly
54+
- doubtfully
55+
- dreamily
56+
- easily
57+
- elegantly
58+
- energetically
59+
- enormously
60+
- enthusiastically
61+
- excitedly
62+
- extremely
63+
- fairly
64+
- faithfully
65+
- famously
66+
- ferociously
67+
- fervently
68+
- fiercely
69+
- fondly
70+
- foolishly
71+
- fortunately
72+
- frankly
73+
- frantically
74+
- freely
75+
- frenetically
76+
- frightfully
77+
- furiously
78+
- generally
79+
- generously
80+
- gently
81+
- gladly
82+
- gleefully
83+
- gracefully
84+
- gratefully
85+
- greatly
86+
- greedily
87+
- happily
88+
- hastily
89+
- healthily
90+
- heavily
91+
- helplessly
92+
- honestly
93+
- hopelessly
94+
- hungrily
95+
- innocently
96+
- inquisitively
97+
- intensely
98+
- intently
99+
- interestingly
100+
- inwardly
101+
- irritably
102+
- jaggedly
103+
- jealously
104+
- jovially
105+
- joyfully
106+
- joyously
107+
- jubilantly
108+
- judgmentally
109+
- justly
110+
- keenly
111+
- kiddingly
112+
- kindheartedly
113+
- knavishly
114+
- knowingly
115+
- knowledgeably
116+
- lazily
117+
- lightly
118+
- limply
119+
- lively
120+
- loftily
121+
- longingly
122+
- loosely
123+
- loudly
124+
- lovingly
125+
- loyally
126+
- madly
127+
- majestically
128+
- meaningfully
129+
- mechanically
130+
- merrily
131+
- miserably
132+
- mockingly
133+
- mortally
134+
- mysteriously
135+
- naturally
136+
- nearly
137+
- neatly
138+
- nervously
139+
- nicely
140+
- noisily
141+
- obediently
142+
- obnoxiously
143+
- oddly
144+
- offensively
145+
- optimistically
146+
- overconfidently
147+
- painfully
148+
- partially
149+
- patiently
150+
- perfectly
151+
- playfully
152+
- politely
153+
- poorly
154+
- positively
155+
- potentially
156+
- powerfully
157+
- promptly
158+
- properly
159+
- punctually
160+
- quaintly
161+
- queasily
162+
- queerly
163+
- questionably
164+
- quickly
165+
- quietly
166+
- quirkily
167+
- quizzically
168+
- randomly
169+
- rapidly
170+
- rarely
171+
- readily
172+
- really
173+
- reassuringly
174+
- recklessly
175+
- regularly
176+
- reluctantly
177+
- repeatedly
178+
- reproachfully
179+
- restfully
180+
- righteously
181+
- rightfully
182+
- rigidly
183+
- roughly
184+
- rudely
185+
- safely
186+
- scarcely
187+
- scarily
188+
- searchingly
189+
- sedately
190+
- seemingly
191+
- selfishly
192+
- separately
193+
- seriously
194+
- shakily
195+
- sharply
196+
- sheepishly
197+
- shrilly
198+
- shyly
199+
- silently
200+
- sleepily
201+
- slowly
202+
- smoothly
203+
- softly
204+
- solemnly
205+
- solidly
206+
- speedily
207+
- stealthily
208+
- sternly
209+
- strictly
210+
- suddenly
211+
- supposedly
212+
- surprisingly
213+
- suspiciously
214+
- sweetly
215+
- swiftly
216+
- sympathetically
217+
- tenderly
218+
- tensely
219+
- terribly
220+
- thankfully
221+
- thoroughly
222+
- thoughtfully
223+
- tightly
224+
- tremendously
225+
- triumphantly
226+
- truthfully
227+
- ultimately
228+
- unabashedly
229+
- unaccountably
230+
- unbearably
231+
- unethically
232+
- unexpectedly
233+
- unfortunately
234+
- unimpressively
235+
- unnaturally
236+
- unnecessarily
237+
- urgently
238+
- usefully
239+
- uselessly
240+
- utterly
241+
- vacantly
242+
- vaguely
243+
- vainly
244+
- valiantly
245+
- vastly
246+
- verbally
247+
- very
248+
- viciously
249+
- victoriously
250+
- violently
251+
- vivaciously
252+
- voluntarily
253+
- warmly
254+
- weakly
255+
- wearily
256+
- wetly
257+
- wholly
258+
- wildly
259+
- willfully
260+
- wisely
261+
- woefully
262+
- wonderfully
263+
- worriedly
264+
- yawningly
265+
- yearningly
266+
- yieldingly
267+
- youthfully
268+
- zealously
269+
- zestfully
270+
- zestily

Diff for: oxygen-term-checker/Auto.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
extends: existence
2+
message: "In general, don't hyphenate '%s'."
3+
link: https://docs.microsoft.com/en-us/style-guide/a-z-word-list-term-collections/a/auto
4+
ignorecase: true
5+
level: error
6+
action:
7+
name: convert
8+
params:
9+
- simple
10+
tokens:
11+
- 'auto-\w+'

Diff for: oxygen-term-checker/Avoid.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
extends: existence
2+
message: "Don't use '%s'."
3+
link: https://docs.microsoft.com/en-us/style-guide
4+
ignorecase: true
5+
level: error
6+
tokens:
7+
- abortion
8+
- and so on
9+
- and/or
10+
- app developer
11+
- app(?:lication)? file
12+
- application developer
13+
- application program
14+
- applications developer
15+
- as well as
16+
- ask
17+
- backbone
18+
- backend

Diff for: oxygen-term-checker/Backend.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
extends: substitution
2+
message: "Use '%s' instead of '%s'."
3+
level: warning
4+
link: https://docs.microsoft.com/en-us/style-guide/a-z-word-list-term-collections/b/back-end
5+
# Use 'back end' (noun) or 'back-end' (adj).
6+
pos: 'back-end/NN|backend/(?:JJ|NN)|back/\w+ end/JJ|back/(?:JJ|RB) end/\w+'
7+
ignorecase: true
8+
action:
9+
name: replace
10+
swap:
11+
back-end: back end
12+
back end: back-end

0 commit comments

Comments
 (0)