Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/ArcanistPhpLinter.php
Context not available. | |||||
$regex = '/^(PHP )?(?<type>.+) error: +(?<error>.+) in (?<file>.+) '. | $regex = '/^(PHP )?(?<type>.+) error: +(?<error>.+) in (?<file>.+) '. | ||||
'on line (?<line>\d+)$/m'; | 'on line (?<line>\d+)$/m'; | ||||
if (preg_match($regex, $stdout, $matches)) { | if (@preg_match($regex, $stdout, $matches)) { | ||||
$code = $this->getLintCodeFromLinterConfigurationKey($matches['type']); | $code = $this->getLintCodeFromLinterConfigurationKey($matches['type']); | ||||
$message = id(new ArcanistLintMessage()) | $message = id(new ArcanistLintMessage()) | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0