Skip to content

Commit

Permalink
Merge pull request #146 from dmundra/patch-1
Browse files Browse the repository at this point in the history
Adjusting remark-lint error and warning message format
  • Loading branch information
haya14busa authored Jun 8, 2024
2 parents 739e471 + 449bddc commit efe8a2f
Show file tree
Hide file tree
Showing 3 changed files with 98 additions and 98 deletions.
4 changes: 2 additions & 2 deletions fmts/markdown.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ func init() {
Name: "remark-lint",
Errorformat: []string{
`%-P%f`,
`%#%l:%c %# %trror %m`,
`%#%l:%c %# %tarning %m`,
`%#%l:%c %# %trror %m`,
`%#%l:%c %# %tarning %m`,
`%-Q`,
`%-G%.%#`,
},
Expand Down
96 changes: 48 additions & 48 deletions fmts/testdata/remark-lint.in
Original file line number Diff line number Diff line change
@@ -1,55 +1,55 @@
resources/markdown/README.md
25:3 warning Incorrect list-item indent: add 2 spaces list-item-indent remark-lint
26:5 warning Incorrect list-item indent: add 2 spaces list-item-indent remark-lint
27:5 warning Incorrect list-item indent: add 2 spaces list-item-indent remark-lint
29:3 warning Incorrect list-item indent: add 2 spaces list-item-indent remark-lint
30:5 warning Incorrect list-item indent: add 2 spaces list-item-indent remark-lint
31:5 warning Incorrect list-item indent: add 2 spaces list-item-indent remark-lint
33:3 warning Incorrect list-item indent: add 2 spaces list-item-indent remark-lint
34:5 warning Incorrect list-item indent: add 2 spaces list-item-indent remark-lint
35:5 warning Incorrect list-item indent: add 2 spaces list-item-indent remark-lint
39:4 warning Incorrect list-item indent: add 1 space list-item-indent remark-lint
40:7 warning Incorrect list-item indent: add 1 space list-item-indent remark-lint
41:7 warning Incorrect list-item indent: add 1 space list-item-indent remark-lint
42:4 warning Incorrect list-item indent: add 1 space list-item-indent remark-lint
43:7 warning Incorrect list-item indent: add 1 space list-item-indent remark-lint
44:7 warning Incorrect list-item indent: add 1 space list-item-indent remark-lint
45:4 warning Incorrect list-item indent: add 1 space list-item-indent remark-lint
25:3 warning Incorrect list-item indent: add 2 spaces list-item-indent remark-lint
26:5 warning Incorrect list-item indent: add 2 spaces list-item-indent remark-lint
27:5 warning Incorrect list-item indent: add 2 spaces list-item-indent remark-lint
29:3 warning Incorrect list-item indent: add 2 spaces list-item-indent remark-lint
30:5 warning Incorrect list-item indent: add 2 spaces list-item-indent remark-lint
31:5 warning Incorrect list-item indent: add 2 spaces list-item-indent remark-lint
33:3 warning Incorrect list-item indent: add 2 spaces list-item-indent remark-lint
34:5 warning Incorrect list-item indent: add 2 spaces list-item-indent remark-lint
35:5 warning Incorrect list-item indent: add 2 spaces list-item-indent remark-lint
39:4 warning Incorrect list-item indent: add 1 space list-item-indent remark-lint
40:7 warning Incorrect list-item indent: add 1 space list-item-indent remark-lint
41:7 warning Incorrect list-item indent: add 1 space list-item-indent remark-lint
42:4 warning Incorrect list-item indent: add 1 space list-item-indent remark-lint
43:7 warning Incorrect list-item indent: add 1 space list-item-indent remark-lint
44:7 warning Incorrect list-item indent: add 1 space list-item-indent remark-lint
45:4 warning Incorrect list-item indent: add 1 space list-item-indent remark-lint

resources/markdown/subfolder/subFile.md
25:3 warning Incorrect list-item indent: add 2 spaces list-item-indent remark-lint
26:5 warning Incorrect list-item indent: add 2 spaces list-item-indent remark-lint
27:5 warning Incorrect list-item indent: add 2 spaces list-item-indent remark-lint
29:3 warning Incorrect list-item indent: add 2 spaces list-item-indent remark-lint
30:5 warning Incorrect list-item indent: add 2 spaces list-item-indent remark-lint
31:5 warning Incorrect list-item indent: add 2 spaces list-item-indent remark-lint
33:3 warning Incorrect list-item indent: add 2 spaces list-item-indent remark-lint
34:5 warning Incorrect list-item indent: add 2 spaces list-item-indent remark-lint
35:5 warning Incorrect list-item indent: add 2 spaces list-item-indent remark-lint
39:4 warning Incorrect list-item indent: add 1 space list-item-indent remark-lint
40:7 warning Incorrect list-item indent: add 1 space list-item-indent remark-lint
41:7 warning Incorrect list-item indent: add 1 space list-item-indent remark-lint
42:4 warning Incorrect list-item indent: add 1 space list-item-indent remark-lint
43:7 warning Incorrect list-item indent: add 1 space list-item-indent remark-lint
44:7 warning Incorrect list-item indent: add 1 space list-item-indent remark-lint
45:4 warning Incorrect list-item indent: add 1 space list-item-indent remark-lint
25:3 warning Incorrect list-item indent: add 2 spaces list-item-indent remark-lint
26:5 warning Incorrect list-item indent: add 2 spaces list-item-indent remark-lint
27:5 warning Incorrect list-item indent: add 2 spaces list-item-indent remark-lint
29:3 warning Incorrect list-item indent: add 2 spaces list-item-indent remark-lint
30:5 warning Incorrect list-item indent: add 2 spaces list-item-indent remark-lint
31:5 warning Incorrect list-item indent: add 2 spaces list-item-indent remark-lint
33:3 warning Incorrect list-item indent: add 2 spaces list-item-indent remark-lint
34:5 warning Incorrect list-item indent: add 2 spaces list-item-indent remark-lint
35:5 warning Incorrect list-item indent: add 2 spaces list-item-indent remark-lint
39:4 warning Incorrect list-item indent: add 1 space list-item-indent remark-lint
40:7 warning Incorrect list-item indent: add 1 space list-item-indent remark-lint
41:7 warning Incorrect list-item indent: add 1 space list-item-indent remark-lint
42:4 warning Incorrect list-item indent: add 1 space list-item-indent remark-lint
43:7 warning Incorrect list-item indent: add 1 space list-item-indent remark-lint
44:7 warning Incorrect list-item indent: add 1 space list-item-indent remark-lint
45:4 warning Incorrect list-item indent: add 1 space list-item-indent remark-lint

resources/markdown/subfolder/subSubFolder/subSubFile.md
25:3 warning Incorrect list-item indent: add 2 spaces list-item-indent remark-lint
26:5 warning Incorrect list-item indent: add 2 spaces list-item-indent remark-lint
27:5 warning Incorrect list-item indent: add 2 spaces list-item-indent remark-lint
29:3 warning Incorrect list-item indent: add 2 spaces list-item-indent remark-lint
30:5 warning Incorrect list-item indent: add 2 spaces list-item-indent remark-lint
31:5 warning Incorrect list-item indent: add 2 spaces list-item-indent remark-lint
33:3 warning Incorrect list-item indent: add 2 spaces list-item-indent remark-lint
34:5 warning Incorrect list-item indent: add 2 spaces list-item-indent remark-lint
35:5 warning Incorrect list-item indent: add 2 spaces list-item-indent remark-lint
39:4 warning Incorrect list-item indent: add 1 space list-item-indent remark-lint
40:7 warning Incorrect list-item indent: add 1 space list-item-indent remark-lint
41:7 warning Incorrect list-item indent: add 1 space list-item-indent remark-lint
42:4 warning Incorrect list-item indent: add 1 space list-item-indent remark-lint
43:7 warning Incorrect list-item indent: add 1 space list-item-indent remark-lint
44:7 warning Incorrect list-item indent: add 1 space list-item-indent remark-lint
45:4 warning Incorrect list-item indent: add 1 space list-item-indent remark-lint
25:3 warning Incorrect list-item indent: add 2 spaces list-item-indent remark-lint
26:5 warning Incorrect list-item indent: add 2 spaces list-item-indent remark-lint
27:5 warning Incorrect list-item indent: add 2 spaces list-item-indent remark-lint
29:3 warning Incorrect list-item indent: add 2 spaces list-item-indent remark-lint
30:5 warning Incorrect list-item indent: add 2 spaces list-item-indent remark-lint
31:5 warning Incorrect list-item indent: add 2 spaces list-item-indent remark-lint
33:3 warning Incorrect list-item indent: add 2 spaces list-item-indent remark-lint
34:5 warning Incorrect list-item indent: add 2 spaces list-item-indent remark-lint
35:5 warning Incorrect list-item indent: add 2 spaces list-item-indent remark-lint
39:4 warning Incorrect list-item indent: add 1 space list-item-indent remark-lint
40:7 warning Incorrect list-item indent: add 1 space list-item-indent remark-lint
41:7 warning Incorrect list-item indent: add 1 space list-item-indent remark-lint
42:4 warning Incorrect list-item indent: add 1 space list-item-indent remark-lint
43:7 warning Incorrect list-item indent: add 1 space list-item-indent remark-lint
44:7 warning Incorrect list-item indent: add 1 space list-item-indent remark-lint
45:4 warning Incorrect list-item indent: add 1 space list-item-indent remark-lint

⚠ 48 warnings
Loading

0 comments on commit efe8a2f

Please sign in to comment.