From 6e0e7198b6678cd00f5b8be4cc16219392eb8cb0 Mon Sep 17 00:00:00 2001 From: Sean Molenaar Date: Tue, 11 Jun 2024 13:06:04 +0200 Subject: [PATCH] feat: add linting for text Signed-off-by: Sean Molenaar --- .github/styles/vocab.txt | 1 + .github/workflows/lint-text.yml | 23 +++++++++++++++++++++++ .vale.ini | 5 +++++ _typos.toml | 2 ++ 4 files changed, 31 insertions(+) create mode 100644 .github/styles/vocab.txt create mode 100644 .github/workflows/lint-text.yml create mode 100644 .vale.ini create mode 100644 _typos.toml diff --git a/.github/styles/vocab.txt b/.github/styles/vocab.txt new file mode 100644 index 000000000..83c831f0b --- /dev/null +++ b/.github/styles/vocab.txt @@ -0,0 +1 @@ +# test diff --git a/.github/workflows/lint-text.yml b/.github/workflows/lint-text.yml new file mode 100644 index 000000000..e24c6e49a --- /dev/null +++ b/.github/workflows/lint-text.yml @@ -0,0 +1,23 @@ +name: Lint + +on: + pull_request: + push: + branches: + - master + +jobs: + typos: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: typos-action + uses: crate-ci/typos@master + + vale: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: errata-ai/vale-action@reviewdog diff --git a/.vale.ini b/.vale.ini new file mode 100644 index 000000000..7e8e41eb6 --- /dev/null +++ b/.vale.ini @@ -0,0 +1,5 @@ +StylesPath = .github/styles +MinAlertLevel = suggestion + +[*.md] +BasedOnStyles = Vale diff --git a/_typos.toml b/_typos.toml new file mode 100644 index 000000000..8b18b6a16 --- /dev/null +++ b/_typos.toml @@ -0,0 +1,2 @@ +[files] +extend-exclude = [ "l10n/*.js*", "js-old/**", "/tests/test_helper/feeds/*", "AUTHORS.md" ]