From 74223c57b13ba070282d0ee46927a1bd128db5cf Mon Sep 17 00:00:00 2001 From: John Boyes Date: Thu, 23 Apr 2020 12:08:54 +0700 Subject: [PATCH] Add languagetool check (#97) * Add languagetool check via reviewdog 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). However 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. --- .github/workflows/reviewdog.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/reviewdog.yml b/.github/workflows/reviewdog.yml index 1786dba..60c7a97 100644 --- a/.github/workflows/reviewdog.yml +++ b/.github/workflows/reviewdog.yml @@ -54,3 +54,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