Summary: newer PyLint includes commas and a column number for every message
after the line number. ignore that if it's present.
Test Plan: ##arc lint --trace --lintall## a file with messages with the old and
new pylint (2.5), works fine with both
Reviewers: epriestley
Reviewed By: epriestley
CC: aran, epriestley
Differential Revision: 1062
$messages = array();
foreach ($lines as $line) {
$matches = null;
- if (!preg_match('/([A-Z]\d+): *(\d+): *(.*)$/', $line, $matches)) {
+ if (!preg_match(
+ '/([A-Z]\d+): *(\d+)(?:|,\d*): *(.*)$/',
+ $line, $matches)) {
continue;
}
foreach ($matches as $key => $match) {