Skip to content

Commit

Permalink
Merge pull request #4 from peternewman/master
Browse files Browse the repository at this point in the history
Update the codespell-problem-matcher
  • Loading branch information
peternewman authored May 26, 2020
2 parents b7d887e + c822800 commit 9db30a9
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 2 deletions.
4 changes: 3 additions & 1 deletion codespell-problem-matcher/.github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
13 changes: 12 additions & 1 deletion codespell-problem-matcher/codespell-matcher.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"problemMatcher": [
{
"owner": "codespell-matcher",
"owner": "codespell-matcher-default",
"pattern": [
{
"regexp": "^(.+):(\\d+):\\s+(.+)$",
Expand All @@ -10,6 +10,17 @@
"message": 3
}
]
},
{
"owner": "codespell-matcher-specified",
"pattern": [
{
"regexp": "^(ERROR|WARNING):\\s+(.+):\\s+(.+)\\s*$",
"file": 3,
"severity": 1,
"message": 2
}
]
}
]
}
Binary file added codespell-problem-matcher/test/test.bin
Binary file not shown.
Binary file added example/example.bin
Binary file not shown.
1 change: 1 addition & 0 deletions example/example:2.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
It's ackward when you make a spelling mistake.

0 comments on commit 9db30a9

Please sign in to comment.