diff --git a/codespell-problem-matcher/.github/workflows/test.yml b/codespell-problem-matcher/.github/workflows/test.yml index 62878d2..2a05433 100644 --- a/codespell-problem-matcher/.github/workflows/test.yml +++ b/codespell-problem-matcher/.github/workflows/test.yml @@ -12,9 +12,11 @@ jobs: - name: Checkout uses: actions/checkout@master - uses: actions/setup-python@v1 - - run: pip install codespell + - run: pip install git+https://github.com/codespell-project/codespell.git - 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 diff --git a/codespell-problem-matcher/codespell-matcher.json b/codespell-problem-matcher/codespell-matcher.json index 4ea7d93..7e7abfc 100644 --- a/codespell-problem-matcher/codespell-matcher.json +++ b/codespell-problem-matcher/codespell-matcher.json @@ -1,7 +1,7 @@ { "problemMatcher": [ { - "owner": "codespell-matcher", + "owner": "codespell-matcher-default", "pattern": [ { "regexp": "^(.+):(\\d+):\\s+(.+)$", @@ -10,6 +10,17 @@ "message": 3 } ] + }, + { + "owner": "codespell-matcher-specified", + "pattern": [ + { + "regexp": "^(ERROR|WARNING):\\s+(.+):\\s+(.+)\\s*$", + "file": 3, + "severity": 1, + "message": 2 + } + ] } ] } diff --git a/codespell-problem-matcher/test/test.bin b/codespell-problem-matcher/test/test.bin new file mode 100644 index 0000000..f76dd23 Binary files /dev/null and b/codespell-problem-matcher/test/test.bin differ diff --git a/example/example.bin b/example/example.bin new file mode 100644 index 0000000..f76dd23 Binary files /dev/null and b/example/example.bin differ diff --git a/example/example:2.txt b/example/example:2.txt new file mode 100644 index 0000000..50a0985 --- /dev/null +++ b/example/example:2.txt @@ -0,0 +1 @@ +It's ackward when you make a spelling mistake.