File tree Expand file tree Collapse file tree 7 files changed +20
-15
lines changed Expand file tree Collapse file tree 7 files changed +20
-15
lines changed Original file line number Diff line number Diff line change 11
11
steps :
12
12
- name : Checkout
13
13
uses : actions/checkout@master
14
+ - uses : actions/setup-python@v1
15
+ - run : pip install codespell
14
16
- uses : ./
15
- - name : Check sort with disorder
16
- run : sort -c test/test.txt || true
17
-
17
+ - name : Check codespell
18
+ run : codespell test/test.txt || true
19
+ - name : Check codespell on an unusually named file
20
+ run : codespell test/test:2.txt || true
Original file line number Diff line number Diff line change 1
- # sort -problem-matcher
1
+ # codespell -problem-matcher
2
2
3
- This problem matcher lets you show errors from GNU ` sort ` as annotation in
3
+ This problem matcher lets you show errors from ` codespell ` as annotation in
4
4
GitHub Actions.
5
5
6
6
Based on [ korelstar] ( https://github.com/korelstar ) 's [ xmllint-problem-matcher] ( https://github.com/korelstar/xmllint-problem-matcher ) .
@@ -15,8 +15,8 @@ No outputs are generated apart from a configured problem matcher.
15
15
16
16
## Usage
17
17
18
- Add the step to your workflow, before ` sort -c ` is called.
18
+ Add the step to your workflow, before ` codespell ` is called.
19
19
20
20
``` yaml
21
- - uses : codespell-project/sort -problem-matcher@v1
21
+ - uses : codespell-project/codespell -problem-matcher@v1
22
22
` ` `
Original file line number Diff line number Diff line change 1
- name : ' sort problem matcher'
1
+ name : ' codespell problem matcher'
2
2
author : ' Peter Newman'
3
- description : ' Shows GNU sort errors as annotation (with file and code line) in GitHub Actions'
3
+ description : ' Shows codespell errors as annotation (with file and code line) in GitHub Actions'
4
4
runs :
5
5
using : ' node12'
6
6
main : ' index.js'
Original file line number Diff line number Diff line change 1
1
{
2
2
"problemMatcher" : [
3
3
{
4
- "owner" : " sort -matcher" ,
4
+ "owner" : " codespell -matcher" ,
5
5
"pattern" : [
6
6
{
7
- "regexp" : " ^sort: (.+):(\\ d+):\\ s+(.+)$" ,
7
+ "regexp" : " ^(.+):(\\ d+):\\ s+(.+)$" ,
8
8
"file" : 1 ,
9
9
"line" : 2 ,
10
10
"message" : 3
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env node
2
- console . log ( `::add-matcher::${ __dirname } /sort -matcher.json` ) ;
2
+ console . log ( `::add-matcher::${ __dirname } /codespell -matcher.json` ) ;
Original file line number Diff line number Diff line change 1
- a
2
- c
3
- b
1
+ abandonned
2
+ Abandonned
3
+ ABANDONNED
4
+ AbAnDoNnEd
Original file line number Diff line number Diff line change
1
+ It's ackward when you make a spelling mistake.
You can’t perform that action at this time.
0 commit comments