Skip to content

Commit 6f9dacf

Browse files
authored
Merge pull request #402 from aireilly/brian-vale-pr
Add Vale checks to the SSG
2 parents 1a460f7 + 4b8b91f commit 6f9dacf

File tree

34 files changed

+1260
-3
lines changed

34 files changed

+1260
-3
lines changed

.github/workflows/vale-on-pull.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: Linting with Vale on pull request
3+
on: [pull_request]
4+
5+
jobs:
6+
vale:
7+
name: runner / vale
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v3
11+
- uses: errata-ai/vale-action@reviewdog
12+
with:
13+
filter_mode: added
14+
vale_flags: "--no-exit --minAlertLevel=error --glob=*.adoc"
15+
reporter: github-pr-review
16+
fail_on_error: false
17+
env:
18+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
19+
REVIEWDOG_GITHUB_API_TOKEN: ${{secrets.GITHUB_TOKEN}}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ main*.html
33
index.html
44
assets
55
pdf-assets
6+
.vale/styles/AsciiDoc
7+
.vale/styles/RedHat

.vale.ini

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
StylesPath = .vale/styles
2+
3+
MinAlertLevel = suggestion
4+
5+
Packages = RedHat, AsciiDoc
6+
7+
IgnoredClasses = vale-ignore
8+
9+
Vocab = SSG
10+
11+
[[!.]*.adoc]
12+
BasedOnStyles = RedHat, AsciiDoc
13+
14+
# Use local SSG Vocab terms
15+
Vale.Terms = YES
16+
Vale.Avoid = YES
17+
18+
# NO prevents the rule from being used
19+
RedHat.Abbreviations = YES
20+
RedHat.CaseSensitiveTerms = NO
21+
RedHat.Conjunctions = YES
22+
RedHat.ConsciousLanguage = NO
23+
RedHat.Contractions = YES
24+
RedHat.Definitions = NO
25+
RedHat.DoNotUseTerms = NO
26+
RedHat.Ellipses = YES
27+
RedHat.HeadingPunctuation = YES
28+
RedHat.Headings = NO
29+
RedHat.Hyphens = YES
30+
RedHat.OxfordComma = YES
31+
RedHat.PascalCamelCase = NO
32+
RedHat.PassiveVoice = NO
33+
RedHat.ReadabilityGrade = YES
34+
RedHat.ReleaseNotes = YES
35+
RedHat.RepeatedWords = YES
36+
RedHat.SelfReferentialText = YES
37+
RedHat.SentenceLength = YES
38+
RedHat.SimpleWords = NO
39+
RedHat.Slash = YES
40+
RedHat.Spacing = YES
41+
RedHat.Spelling = YES
42+
RedHat.TermsErrors = YES
43+
RedHat.TermsSuggestions = YES
44+
RedHat.TermsWarnings = YES
45+
RedHat.Usage = YES
46+
RedHat.UserReplacedValues = YES

.vale/styles/Vocab/SSG/accept.txt

Lines changed: 184 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,184 @@
1+
# Add terms that have a corresponding incorrectly capitalized form to reject.txt.
2+
# Regex terms added to accept.txt are ignored by the Vale linter and override RedHat Vale rules.
3+
4+
[cC]loudbursting
5+
[cC]loudwashing
6+
[Dd]atagram
7+
[Ee]xtranet
8+
[fF]utex
9+
[Gg]pl
10+
[Ii][Oo]
11+
[Ll]inux
12+
[Mm]odcluster
13+
[Mm]utex
14+
[Pp]ico
15+
[Pp]luggable
16+
[Rr]emoting
17+
[rR]ulebook
18+
[Ss]oftcopy
19+
[Ss]ysprep
20+
[Tt]hunderbird
21+
[Vv]irtualized
22+
AppStream
23+
autodetect
24+
autoscaler
25+
AZs
26+
BIOSes
27+
Bootloader
28+
bpp
29+
callout
30+
CAs
31+
CCSPs
32+
Cgroups
33+
ciphertext
34+
classful
35+
cleartext
36+
context_path
37+
crawlable
38+
datacenters
39+
DCs
40+
deduped
41+
denylist
42+
DSLs
43+
eCos
44+
EE
45+
ee
46+
EIPs
47+
embeddable
48+
Enterpise
49+
ess
50+
facto
51+
FireWire
52+
fluentd
53+
followable
54+
Gartner
55+
gcc
56+
GCC
57+
gcj
58+
GCJ
59+
GDB
60+
gbd
61+
grayscale
62+
Gtk
63+
gtk
64+
GTK
65+
Guestfish
66+
Hoffer
67+
hostfile
68+
html
69+
HTML
70+
IDPs
71+
indexless
72+
Ipsilon
73+
iSeries
74+
ISO/IEC
75+
javascript
76+
JavaScript
77+
jaxrs
78+
jca
79+
JCA
80+
JDR
81+
jdr
82+
jgroups
83+
JGroups
84+
JMX
85+
jmx
86+
JPA
87+
jpa
88+
JSF
89+
jsf
90+
jsvc
91+
Karaf
92+
Katello
93+
kbps
94+
kerberize
95+
kerberized
96+
KJARs
97+
LANs
98+
linter
99+
lookups
100+
MBean
101+
MBps
102+
Mbps
103+
Merced
104+
Microcontainer
105+
microkernel
106+
Microsystems
107+
monospace
108+
Mozilla Firefox
109+
multicast
110+
OEMs?
111+
OSDs?
112+
OSGi
113+
OSTree
114+
oVirt
115+
paravirtualized
116+
passlist
117+
PL/SQL
118+
plaintext
119+
pojo subsystem
120+
POJO subsystem
121+
Portman
122+
premaster
123+
pSeries
124+
publish/subscribe
125+
Puppetize
126+
Qpid
127+
RBD
128+
rbd
129+
read/write
130+
rebrand
131+
redhat
132+
remoting subsystem
133+
rpm-ostree
134+
RTS
135+
rts
136+
S/390
137+
S3/Swift
138+
SAR
139+
sar
140+
SCL
141+
scriptlet
142+
sharded
143+
SIDs
144+
SkyDNS
145+
SmartProxy
146+
smbclient
147+
softirqs?
148+
Solaris
149+
sos
150+
sos report
151+
sosreport
152+
spacebar
153+
sparsify
154+
Sybase
155+
sysreport
156+
Tcl/Tk
157+
Telecom
158+
TGTs?
159+
toolchain
160+
toolset
161+
unencrypted
162+
unicast
163+
URI
164+
URL
165+
URN
166+
userspace
167+
VCs
168+
WCAs?
169+
webadmin
170+
WebAIM
171+
webopedia
172+
webservices
173+
WWW
174+
www
175+
XEmacs
176+
xemacs
177+
Xen
178+
Xplat
179+
xsession
180+
XTS
181+
xts
182+
Yubikey
183+
z/Architecture
184+
zSeries

.vale/styles/Vocab/SSG/reject.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Regex terms added to reject.txt are highlighted as errors by the Vale linter and override RedHat Vale rules.
2+
# Add terms that have a corresponding correctly capitalized form to accept.txt.

GUIDELINES.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Use the following template for glossary entries:
1616
1717
*Use it*: <yes/no/with caution>
1818
19+
[.vale-ignore]
1920
*Incorrect forms*: <incorrect_form>
2021
2122
*See also*: xref:<another_term_id>[<another_term>]

0 commit comments

Comments
 (0)