Skip to content

Commit 7567b96

Browse files
chmouelpiyush-garg
authored andcommitted
Vale rules update
This update the vale rules from RedHat and defaults
1 parent e505fa6 commit 7567b96

File tree

12 files changed

+48
-24
lines changed

12 files changed

+48
-24
lines changed

.vale/styles/.vale-config/1-Hugo.ini

Lines changed: 0 additions & 8 deletions
This file was deleted.

.vale/styles/.vale-config/2-Hugo.ini

Lines changed: 0 additions & 8 deletions
This file was deleted.

.vale/styles/RedHat/CaseSensitiveTerms.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ swap:
1111
"(?<!/)var": VAR
1212
"(?<!Business )Resource Planner|(?<!Business Resource )Planner": Business Resource Planner
1313
"(?<!Microsoft Azure )On-Demand Marketplace": Microsoft Azure On-Demand Marketplace
14-
"(?<!Red Hat )Customer Portal": Red Hat Customer Portal
1514
"(?<!Red Hat )JBoss Enterprise Application Platform": Red Hat JBoss Enterprise Application Platform
1615
"(?<!Red Hat )OpenStack Platform|RHOS|RH-OSP": Red Hat OpenStack Platform
1716
"(?<!Red Hat JBoss )BRMS(?! engine)": inference engine
@@ -24,7 +23,7 @@ swap:
2423
"DM(?![ -]Multipath)|directory manager": Directory Manager
2524
"JBoss Broker|Red Hat Broker|The AMQ Broker": AMQ Broker
2625
"JBoss Console|Red Hat Console": AMQ Console
27-
"Kernel(?!-based Virtual Machine)": kernel
26+
"Kernel(?!-based Virtual Machine| Module Management)": kernel
2827
"OCM|(?<!Red Hat OpenShift )Cluster Manager|(?<!Red Hat )OpenShift Cluster Manager|the OpenShift Cluster Manager": Red Hat OpenShift Cluster Manager
2928
"OD": Red Hat OpenShift Dedicated
3029
"sub version|(?<!Apache )Subversion": sub-version
@@ -93,6 +92,7 @@ swap:
9392
configuration map: config map
9493
Content view|content view: Content View
9594
control key|ctrl: Ctrl
95+
CP|RHCP|customer portal: Customer Portal|Red Hat Customer Portal
9696
crush map|crushmap: CRUSH map
9797
csv: CSV
9898
CygMon|cygmon|CYGMON: Cygmon
@@ -218,13 +218,13 @@ swap:
218218
Organization administrator|Org Admin|org admin: Organization Administrator
219219
OS|Operating System: operating system
220220
Overcloud: overcloud
221+
P-PC|PPC64: PowerPC
221222
Podman desktop: Podman Desktop
222223
podman: Podman
223224
popup|Pop-up: pop-up
224225
Posix|posix: POSIX
225226
Postscript: PostScript
226227
Powershell|powershell: PowerShell
227-
PPC|P-PC|PPC64: PowerPC
228228
Ppp|ppp: PPP
229229
prom|Prom: PROM
230230
proof key for code exchange: Proof Key for Code Exchange

.vale/styles/RedHat/Definitions.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ exceptions:
4444
- DNS
4545
- DOM
4646
- DOS
47+
- DPDK
4748
- DPI
4849
- DRL
4950
- DSL
@@ -112,6 +113,8 @@ exceptions:
112113
- NVDA
113114
- OEM
114115
- OSS
116+
- OVN
117+
- OVS
115118
- PATH
116119
- PC
117120
- PDF

.vale/styles/RedHat/DoNotUseTerms.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
extends: substitution
3-
ignorecase: true
3+
ignorecase: false
44
level: warning
5-
link: https://redhat-documentation.github.io/vale-at-red-hat/docs/main/reference-guide/donotuse/
5+
link: https://redhat-documentation.github.io/vale-at-red-hat/docs/main/reference-guide/donotuseterms/
66
message: "%s"
77
swap:
88
# Start each error message with "Do not use ..."

.vale/styles/RedHat/EmDash.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
extends: existence
3+
ignorecase: true
4+
level: warning
5+
scope: raw
6+
nonword: true
7+
link: https://redhat-documentation.github.io/vale-at-red-hat/docs/main/reference-guide/emdash/
8+
message: Do not use em dashes. Use punctuation marks such as commas, parentheses, or colons instead.
9+
tokens:
10+
- ''
11+
- '&mdash;'
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
extends: existence
3+
scope: raw
4+
level: error
5+
nonword: true
6+
link: https://redhat-documentation.github.io/vale-at-red-hat/docs/main/reference-guide/mergeconflictmarkers/
7+
message: "Do not commit Git merge conflict markers in source code."
8+
action:
9+
name: remove
10+
tokens:
11+
- '^<{7}\s.*$'
12+
- '^={7}$'
13+
- '^>{7}\s.*$'

.vale/styles/RedHat/PascalCamelCase.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ exceptions:
5353
- FireWire
5454
- FreeRADIUS
5555
- GbE
56+
- GBps
5657
- GiB
5758
- GitHub
5859
- GitLab
@@ -84,6 +85,7 @@ exceptions:
8485
- JBoss
8586
- JetBrains
8687
- JUnit
88+
- kBps
8789
- KiB
8890
- LangTags
8991
- LGPLv
@@ -95,6 +97,7 @@ exceptions:
9597
- LiquidIO
9698
- ManageIQ
9799
- MariaDB
100+
- MBps
98101
- MegaRAID
99102
- MiB
100103
- MicroProfile
@@ -119,8 +122,8 @@ exceptions:
119122
- OpenID
120123
- OpenIPMI
121124
- OpenJDK
122-
- OpenRewrite
123125
- OpenRAN
126+
- OpenRewrite
124127
- OpenSCAP
125128
- OpenShift
126129
- OpenSSH
@@ -163,6 +166,7 @@ exceptions:
163166
- STMicroelectronics
164167
- SuperLU
165168
- SysV
169+
- TBps
166170
- TiB
167171
- TuneD
168172
- TypeScript
@@ -172,6 +176,7 @@ exceptions:
172176
- vHost
173177
- VMware
174178
- vSphere
179+
- vSwitch
175180
- WebAuthn
176181
- WebSocket
177182
- WireGuard
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
---
22
extends: repetition
3-
message: "'%s' is repeated!"
3+
message: "'%s' is repeated."
44
level: warning
55
link: https://redhat-documentation.github.io/vale-at-red-hat/docs/main/reference-guide/repeatedwords/
66
ignorecase: false
77
alpha: true
8+
action:
9+
name: remove
810
tokens:
911
- '[^\s\.]+'
1012
- '[^\s]+'

.vale/styles/RedHat/Spelling.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ filters:
3131
- "[cC]olocate"
3232
- "[cC]olocation"
3333
- "[cC]onfig"
34+
- "[cC]ontainerd"
3435
- "[cC]orequisite"
3536
- "[cC]ustomizer"
3637
- "[cC]yberattack"
@@ -39,6 +40,7 @@ filters:
3940
- "[dD]atasource"
4041
- "[dD]eclaratively"
4142
- "[dD]ecompiler"
43+
- "[dD]efragmentation"
4244
- "[dD]eserialization"
4345
- "[dD]eserialize"
4446
- "[dD]eserialized"
@@ -81,6 +83,7 @@ filters:
8183
- "[kK]eylime"
8284
- "[kK]eyring"
8385
- "[kK]eyrings"
86+
- "[kK]eyspace"
8487
- "[kK]eytab"
8588
- "[lL]ibvirt"
8689
- "[lL]icensor"
@@ -176,6 +179,7 @@ filters:
176179
- "[rR]ollouts"
177180
- "[rR]oundtable"
178181
- "[rR]oundtables"
182+
- "[rR]ulebook"
179183
- "[rR]uleset"
180184
- "[rR]unlevel"
181185
- "[rR]unlevels"

0 commit comments

Comments
 (0)