rs-cargo/.matchers/rust.json
2022-01-13 22:43:06 +08:00

42 lines
1.1 KiB
JSON

{
"problemMatcher": [
{
"owner": "rust-diagnostic",
"pattern": [
{
"regexp": "^(warning|warn|error)(\\[(.*)\\])?: (.*)$",
"severity": 1,
"message": 4,
"code": 3
},
{
"regexp": "^([\\s->=]*(.*):(\\d*):(\\d*)|.*)$",
"file": 2,
"line": 3,
"column": 4
}
]
},
{
"owner": "rust-panic",
"pattern": [
{
"regexp": "^(thread\\s+'[^']+'\\s+panicked\\s+at\\s+'[^']+(?:'|$))(?:,\\s+([^/\\\\][^:]+):(\\d+):(\\d+))?",
"file": 2,
"line": 3,
"column": 4,
"message": 1
}
]
},
{
"owner": "rust-test-failure",
"pattern": [
{
"regexp": "^(test\\s+\\w+\\s+\\.{3}\\s+FAILED)",
"message": 1
}
]
}
]
}