Skip to content

Commit

Permalink
Update yapf matcher.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jmichelp committed Apr 28, 2020
1 parent a611496 commit 332d7bc
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions .github/python_matcher.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,8 @@
"pattern": [
{
"regexp": "^(?:---|\\+\\+\\+)\\s*([^\\s]*)\\s*\\((?:original|reformatted)\\)$",
"file": 1
},
{
"regexp": "^@@\\s*-(\\d+),(\\d+)\\s*\\+(\\d+),(\\d+)\\s*@@$",
"line": 1,
"column": 2
},
{
"regexp": "^((?:\\s|\\+[^+]|\\-[^-]).*)$",
"loop": true,
"message": 1
"file": 1,
"message": "This file needs formating."
}
]
},
Expand Down

0 comments on commit 332d7bc

Please sign in to comment.