From 8067cf40bc09fd81ed9cddd33b0b399145f33deb Mon Sep 17 00:00:00 2001 From: Peter Newman Date: Tue, 26 May 2020 17:24:42 +0100 Subject: [PATCH] Squashed 'codespell-problem-matcher/' changes from 9561cf3..b80729f b80729f Hopefully really fix the regex a60df2a Properly fix the regex to optionally ignore the trailing space fa77482 Run the tests twice, against master and pip release git-subtree-dir: codespell-problem-matcher git-subtree-split: b80729f885d32f78a716c2f107b4db1025001c42 --- .github/workflows/test.yml | 16 +++++++++++++++- codespell-matcher.json | 2 +- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2a05433..5116018 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,7 +6,21 @@ on: pull_request: jobs: - test: + test-stable: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@master + - uses: actions/setup-python@v1 + - run: pip install codespell + - uses: ./ + - name: Check codespell + run: codespell test/test.txt || true + - name: Check codespell on an unusually named file + run: codespell test/test:2.txt || true + - name: Check codespell on a binary file + run: codespell test/test.bin || true + test-master: runs-on: ubuntu-latest steps: - name: Checkout diff --git a/codespell-matcher.json b/codespell-matcher.json index 7e7abfc..cded56c 100644 --- a/codespell-matcher.json +++ b/codespell-matcher.json @@ -15,7 +15,7 @@ "owner": "codespell-matcher-specified", "pattern": [ { - "regexp": "^(ERROR|WARNING):\\s+(.+):\\s+(.+)\\s*$", + "regexp": "^(ERROR|WARNING):\\s+(.+):\\s+(.+?)\\s*$", "file": 3, "severity": 1, "message": 2