File tree Expand file tree Collapse file tree 6 files changed +32
-7
lines changed Expand file tree Collapse file tree 6 files changed +32
-7
lines changed Original file line number Diff line number Diff line change 1+ name : Build + Test
2+
3+ on : push
4+
5+ jobs :
6+ styles :
7+ runs-on : ubuntu-latest
8+ steps :
9+ - name : Checkout
10+ uses : actions/checkout@v3
11+ with :
12+ fetch-depth : 0
13+
14+ - name : Set up Go
15+ uses : actions/setup-go@v3
16+ with :
17+ go-version : " 1.20"
18+
19+ - name : Install Vale
20+ run : |
21+ go install github.com/errata-ai/vale/v2/cmd/vale@latest
22+ echo 'export PATH=$PATH:$(go env GOPATH)/bin' >> $GITHUB_PATH
23+
24+ - name : Run tests
25+ run : |
26+ go test -v ./pkg
Original file line number Diff line number Diff line change 1- # Styles [ ![ Build Status ] ( https://travis-ci.org/errata-ai/styles.svg?branch=master )] ( https://travis-ci.org/errata-ai/styles )
1+ # Styles
22
33This repository contains a library of all officially supported styles for Vale. The benefits of using these styles over their original implementations include:
44
Original file line number Diff line number Diff line change 1- $ cdf ${ROOTDIR}/Basic
1+ $ cdf ${ROOTDIR}/basic
22$ vale --output=line --sort --normalize --relative --no-exit fail.md pass.md real.md
33fail.md:3:21:Joblint.Profanity:Remove 'fucking'
44fail.md:3:37:Joblint.TechTerms:Use 'JavaScript' instead of 'java script'
Original file line number Diff line number Diff line change 1- $ cdf ${ROOTDIR}/Basic
1+ $ cdf ${ROOTDIR}/basic
22$ vale --output=line --sort --normalize --relative --no-exit fail.md pass.md
33fail.md:3:21:alex.ProfanityLikely:Don't use 'fucking', it's profane.
Original file line number Diff line number Diff line change 1- $ cdf ${ROOTDIR}/Basic
1+ $ cdf ${ROOTDIR}/basic
22$ vale --output=line --sort --normalize --relative --no-exit test.md
33test.md:1:19:proselint.Nonwords:Consider using 'regardless' instead of 'irregardless'.
44test.md:3:18:proselint.Archaisms:'perchance' is archaic.
@@ -35,7 +35,7 @@ test.md:51:27:proselint.Diacritical:Consider using 'Beyoncé' instead of 'Beyonc
3535test.md:51:36:proselint.P-Value:You should use more decimal places, unless 'p = 0.00' is really true.
3636test.md:51:47:proselint.Needless:Prefer 'abolition' over 'abolishment'
3737
38- $ cdf ${ROOTDIR}/Punctuation
38+ $ cdf ${ROOTDIR}/punctuation
3939$ vale --output=line --sort --normalize --relative --no-exit test.md
4040test.md:3:17:proselint.Hyperbole:'idea!!' is hyperbolic.
4141test.md:8:23:proselint.Hyperbole:'here!!' is hyperbolic.
Original file line number Diff line number Diff line change @@ -8,9 +8,8 @@ test.md:3:1:write-good.E-Prime:Try to avoid using 'Here's'.
88test.md:6:1:write-good.E-Prime:Try to avoid using 'It's'.
99
1010$ cdf ${ROOTDIR}/Illusions
11- $ vale --output=line --sort --normalize --relative test.md test.rst
11+ $ vale --output=line --sort --normalize --relative test.md
1212test.md:1:1:write-good.Illusions:'the' is repeated!
13- test.rst:1:1:write-good.Illusions:'foo' is repeated!
1413
1514$ cdf ${ROOTDIR}/Passive
1615$ vale --output=line --sort --normalize --relative test.md
You can’t perform that action at this time.
0 commit comments