Use VSCode plugin's problem matchers

This commit is contained in:
Jonathan Clem
2020-08-05 13:08:02 -04:00
parent 230dd25d80
commit bae0896578
4 changed files with 82 additions and 24 deletions

39
.github/elixir.json vendored
View File

@@ -1,29 +1,44 @@
{
"problemMatcher": [
{
"owner": "elixir",
"owner": "elixir-mixCompileError",
"severity": "error",
"pattern": [
{
"regexp": "^(\\*\\* \\(.*\\) )?((.:)?[^:]*):(\\d+)(:(\\d+))?: (.*)$",
"regexp": "^\\*\\* \\((\\w+)\\) (.*):(\\d+): (.*)$",
"file": 2,
"line": 4,
"column": 6,
"message": 7
"location": 3,
"message": 0
}
]
},
{
"owner": "elixir-warning",
"owner": "elixir-mixCompileWarning",
"severity": "warning",
"pattern": [
{
"regexp": "^(warning: (.*))$",
"message": 2
"regexp": "^warning: (.*)$",
"message": 1
},
{
"regexp": "^( )((.:)?[^:]*):(\\d+)(:(\\d+))?$",
"file": 2,
"line": 4,
"column": 6
"regexp": "^ (.*):(\\d+).*$",
"file": 1,
"location": 2
}
]
},
{
"owner": "elixir-mixTestFailure",
"severity": "error",
"pattern": [
{
"regexp": "^\\s*\\d+\\) (.*)$",
"message": 1
},
{
"regexp": "^\\s*(.*):(\\d+)$",
"file": 1,
"location": 2
}
]
}