Skip to content

Commit 0abc546

Browse files
committed
Setting up vale linter using Microsoft, Readability, and Hugo packages with CNCF vocabulary additions
Signed-off-by: Nate W <[email protected]>
1 parent a657880 commit 0abc546

File tree

5 files changed

+34
-0
lines changed

5 files changed

+34
-0
lines changed

.github/styles/Vocab/CNCF/accept.txt

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
cloud native
2+
containerd
3+
gRPC
4+
K8s
5+
open source

.github/styles/Vocab/CNCF/reject.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
cloud-native
2+
K8
3+
open-source

.github/workflows/vale.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Editorial review
2+
on: [pull_request]
3+
4+
jobs:
5+
vale:
6+
name: runner / vale
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v3
10+
- uses: errata-ai/vale-action@reviewdog
11+
with:
12+
files: content/en
13+
fail_on_error: true

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,7 @@
22
public/
33
resources/
44
node_modules/
5+
.github/styles/*
6+
!.github/styles/Vocab
57
.hugo_build.lock
68
.DS_Store

.vale.ini

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
StylesPath = .github/styles
2+
3+
Vocab = CNCF
4+
5+
MinAlertLevel = suggestion
6+
7+
Packages = Microsoft, Readability, Hugo
8+
9+
[*.md]
10+
BasedOnStyles = Vale, Microsoft, Readability
11+

0 commit comments

Comments
 (0)