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:
13
.github/python_matcher.json
vendored
13
.github/python_matcher.json
vendored
@@ -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
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user