Squashed 'codespell-problem-matcher/' changes from b508e1b..9561cf3
9561cf3 Handle with or without trailing space and match error too 087de87 Run the bleeding edge codespell in our test 008fd97 Simplify the match again now we've found the cause of the issue 858bb67 Deal with any trailing whitespace cdf927a Try another way to match warnings, hopefully catching the file 64fa47d Revert "Test if it's the lack of line matching breaking the warning matcher" 994c7ca Test if it's the lack of line matching breaking the warning matcher 29d3ef5 Catch the severity level too and try and fix the filename match 36d53fb Name the problem matchers separately 937ce1f Try two problem matchers in one file. I suspect the owner will need to differ 3e43d61 Try and add a second matcher 0523b36 Add a binary file and test against it, ready for another problem matcher git-subtree-dir: codespell-problem-matcher git-subtree-split: 9561cf35f342868a1642c30d2e337e783338c875
This commit is contained in:
@@ -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
|
||||
|
||||
+12
-1
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user