Created
October 28, 2021 13:29
-
-
Save joe-warren/f39b6605a7f2678b0048fa08a3c8b674 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"problemMatcher": [ | |
{ | |
"owner": "hlint", | |
"severity": "warning", | |
"pattern": [ | |
{ | |
"regexp": "^([^:]*\\/)([^:/]*):(\\d+)(-\\d+)?:(\\d+)(-\\d+)?: (Warning|Error): (.*)$", | |
"fromPath": 1, | |
"file": 2, | |
"line": 3, | |
"column": 5, | |
"message": 8 | |
} | |
] | |
}, | |
{ | |
"owner": "hlint-multiline", | |
"severity": "warning", | |
"pattern": [ | |
{ | |
"regexp": "^([^:]*\\/)([^:/]*):\\((\\d+),(\\d+)\\)-\\(\\d+,\\d+\\): (Warning|Error): (.*)$", | |
"fromPath": 1, | |
"file": 2, | |
"line": 3, | |
"column": 4, | |
"message": 6 | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
GitHub Actions Problem Matcher for HLint (creates PR annotations based on log output).
You can register this (before running hlint), by running
Matches the first line of each warning.
As written, this only matches the more severe "Warning" level suggestions, and not "Suggestions".
You can change this by replacing
(Warning|Error)
with(Suggestion|Warning|Error)
in the two regular expressions.