Skip to content

Commit 295b4f4

Browse files
authored
Merge pull request redhat-documentation#900 from emteelb/main
improve Spelling rule by using word boundaries
2 parents 035f461 + 1f9f161 commit 295b4f4

File tree

2 files changed

+30
-34
lines changed

2 files changed

+30
-34
lines changed

.vale/styles/RedHat/Spelling.yml

+27-31
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,14 @@ filters:
2222
- "[bB]indable"
2323
- "[bB]oolean"
2424
- "[bB]ootable"
25-
- "[bB]reakpoint"
26-
- "[bB]reakpoints"
27-
- "[cC]he"
25+
- "[bB]reakpoint(s)?"
26+
- '\b[cC]he\b'
2827
- "[cC]hrony"
2928
- "[cC]lassloading"
3029
- "[cC]lasspath"
3130
- "[cC]olocate"
3231
- "[cC]olocation"
33-
- "[cC]onfig"
32+
- '\b[cC]onfig\b'
3433
- "[cC]ontainerd"
3534
- "[cC]orequisite"
3635
- "[cC]ustomizer"
@@ -42,11 +41,9 @@ filters:
4241
- "[dD]ecompiler"
4342
- "[dD]efragmentation"
4443
- "[dD]eserialization"
45-
- "[dD]eserialize"
46-
- "[dD]eserialized"
47-
- "[dD]esynchronize"
48-
- "[dD]esynchronized"
49-
- "[dD]ev"
44+
- "[dD]eserialize(d)?"
45+
- "[dD]esynchronize(d)?"
46+
- '\b[dD]ev\b'
5047
- "[dD]ev[wW]orkspace"
5148
- "[dD]evfile"
5249
- "[dD]istro"
@@ -61,7 +58,7 @@ filters:
6158
- "[fF]indability"
6259
- "[gG]bps"
6360
- "[gG]ibibyte"
64-
- "[gG]it"
61+
- '\b[gG]it\b'
6562
- "[gG]lock"
6663
- "[gG]radle"
6764
- "[gG]rafana"
@@ -75,7 +72,7 @@ filters:
7572
- "[iI]ntrarecord"
7673
- "[iI]ntrasystem"
7774
- "[iI]nvocable"
78-
- "[iI]tem"
75+
- '\b[iI]tem\b'
7976
- "[jJ]et[bB]rains"
8077
- "[jJ]ournald"
8178
- "[jJ]ournaling"
@@ -143,7 +140,7 @@ filters:
143140
- "[pP]ostoperation"
144141
- "[pP]ostrequisite"
145142
- "[pP]recompile"
146-
- "[pP]reconfigured"
143+
- "[pP]reconfigure(d)?"
147144
- "[pP]reenrollment"
148145
- "[pP]reformatted"
149146
- "[pP]regenerated"
@@ -197,25 +194,17 @@ filters:
197194
- "[sS]ervlet"
198195
- "[sS]etter"
199196
- "[sS]harding"
200-
- "[Ss]u"
201-
- "[sS]ubcommand"
202-
- "[sS]ubcommands"
203-
- "[sS]ubmenu"
204-
- "[sS]ubmenus"
205-
- "[sS]ubnetwork"
206-
- "[sS]ubnetworks"
207-
- "[sS]ubpackage"
208-
- "[sS]ubpackages"
209-
- "[sS]ubpath"
210-
- "[sS]ubpaths"
211-
- "[sS]ubstep"
212-
- "[sS]ubsteps"
213-
- "[sS]ubtest"
214-
- "[sS]ubtests"
215-
- "[sS]ubuser"
216-
- "[sS]ubusers"
217-
- "[sS]ubvolume"
218-
- "[sS]ubvolumes"
197+
- '\b[Ss]u\b'
198+
- "[sS]ubcommand(s)?"
199+
- "[sS]ubmenu(s)?"
200+
- "[sS]ubnet(s)?"
201+
- "[sS]ubnetwork(s)?"
202+
- "[sS]ubpackage(s)?"
203+
- "[sS]ubpath(s)?"
204+
- "[sS]ubstep(s)?"
205+
- "[sS]ubtest(s)?"
206+
- "[sS]ubuser(s)?"
207+
- "[sS]ubvolume(s)?"
219208
- "[sS]ysctl"
220209
- "[sS]yslog"
221210
- "[sS]ystemd"
@@ -254,6 +243,7 @@ filters:
254243
- Applixware
255244
- Asciidoctor
256245
- AssertJ
246+
- autoconfigure
257247
- autolink
258248
- aws
259249
- AWS
@@ -406,6 +396,7 @@ filters:
406396
- Mirantis
407397
- Mockito
408398
- MongoDB
399+
- multischema
409400
- MySQL
410401
- Nagios
411402
- Narayana
@@ -443,6 +434,7 @@ filters:
443434
- Podman
444435
- PostgreSQL
445436
- PowerShell
437+
- precache
446438
- Prometheus
447439
- proxied
448440
- Pytorch
@@ -479,6 +471,10 @@ filters:
479471
- startx
480472
- STMicroelectronics
481473
- Stratis
474+
- subaddress
475+
- subcapacity
476+
- subtab
477+
- superobject
482478
- Suchow
483479
- SVG
484480
- Symfony

tools/validate-vale-rules.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Rule() {
1515
VALIDALERTSCOUNT="$(vale --config="$DIR/.vale.ini" --no-exit --output=line "$DIR/testvalid.adoc" | wc -l)"
1616
INVALIDALERTS="$(vale --config="$DIR/.vale.ini" --no-exit --output=line "$DIR/testinvalid.adoc" | wc -l)"
1717
INVALIDLINES="$(grep -cve '.+' "$DIR/testinvalid.adoc" || true)"
18-
echo "$INVALIDLINES in .vale/fixtures/RedHat/$RULE/"
18+
echo "$INVALIDLINES in .vale/fixtures/RedHat/$RULE/"
1919
INVALIDGAP=$((INVALIDLINES - INVALIDALERTS))
2020
if [ "$VALIDALERTSCOUNT" -gt 0 ]
2121
then
@@ -72,9 +72,9 @@ done
7272
# This scripts runs the suite for each rule in the `RedHat` style.
7373
TOTAL=0
7474
for RULE in $(find .vale/styles/RedHat/ -name '*.yml' | cut -d/ -f 4 | cut -d. -f1 | sort)
75-
do
75+
do
7676
Rule
7777
done
7878

7979
echo "$TOTAL tests to fix"
80-
exit $TOTAL
80+
exit $TOTAL

0 commit comments

Comments
 (0)