Skip to content

Commit 4ba2ff2

Browse files
committed
Adding basic setup for vale (spell and style checking)
1 parent 375f75d commit 4ba2ff2

File tree

3 files changed

+38
-0
lines changed

3 files changed

+38
-0
lines changed

.github/workflows/vale.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Spelling & Styles
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- '**.md'
9+
pull_request:
10+
branches:
11+
- main
12+
13+
jobs:
14+
vale:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v3
19+
20+
- name: Vale Linting
21+
uses: errata-ai/vale-action@reviewdog
22+
with:
23+
files: '["introduction/", "infrastructure/", "measuring/"]'
24+
vale_flags: "--glob=*.md"
25+
filter_mode: added
26+
debug: true

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# We want to ignore our vale StylesPath
2+
.github/vale/*

.vale.ini

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
StylesPath = .github/vale
2+
MinAlertLevel = suggestion
3+
4+
Packages = https://github.com/InnerSourceCommons/isc-styles/releases/latest/download/ISC.zip
5+
6+
[*]
7+
BasedOnStyles = ISC
8+
9+
; If you **don't** want to check for the correct spelling of "InnerSource", comment this in
10+
; ISC.InnerSource = NO

0 commit comments

Comments
 (0)