Skip to content

Commit

Permalink
Add languagetool check via reviewdog (#7)
Browse files Browse the repository at this point in the history
https://github.com/reviewdog/action-languagetool

https://languagetool.org/

https://github.com/languagetool-org/languagetool

Use en locale for languagetool checks

Use `en` as it does not do spell checking, whereas if we use `en-gb`
`en-gb` then it flags errors for the US spelling of `LICENSE`
(which is what it should do).
As LICENSE is the conventional name for the licence file, we
don't want it to be reported.

Our spell checking is done by misspell (which we have set to allow UK
or US variants e.g. colour and color), so we don't want languagetool
to do spell checking anyway.
  • Loading branch information
johnboyes authored Jul 29, 2020
1 parent f08779b commit a43b29e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/reviewdog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,16 @@ jobs:
with:
github_token: ${{ secrets.github_token }}
reporter: github-check

languagetool:
name: runner / languagetool
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: reviewdog/action-languagetool@v1
with:
github_token: ${{ secrets.github_token }}
reporter: github-check
patterns: |
**/*.md
language: en

0 comments on commit a43b29e

Please sign in to comment.