Update yapf matcher.

Extracting the diff is not very useful because messages are not
concatenated. The line/column info is also not useful because the
diff includes some context lines.
This commit is contained in:
Jean-Michel Picod
2020-04-28 18:36:04 +02:00
parent a611496497
commit 332d7bc2ea

View File

@@ -5,17 +5,8 @@
"pattern": [ "pattern": [
{ {
"regexp": "^(?:---|\\+\\+\\+)\\s*([^\\s]*)\\s*\\((?:original|reformatted)\\)$", "regexp": "^(?:---|\\+\\+\\+)\\s*([^\\s]*)\\s*\\((?:original|reformatted)\\)$",
"file": 1 "file": 1,
}, "message": "This file needs formating."
{
"regexp": "^@@\\s*-(\\d+),(\\d+)\\s*\\+(\\d+),(\\d+)\\s*@@$",
"line": 1,
"column": 2
},
{
"regexp": "^((?:\\s|\\+[^+]|\\-[^-]).*)$",
"loop": true,
"message": 1
} }
] ]
}, },