Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/ArcanistJSONLintLinter.php
Context not available. | |||||
$this->getExecutableCommand()); | $this->getExecutableCommand()); | ||||
$matches = array(); | $matches = array(); | ||||
if (preg_match('/^(?P<version>\d+\.\d+\.\d+)$/', $stdout, $matches)) { | if (@preg_match('/^(?P<version>\d+\.\d+\.\d+)$/', $stdout, $matches)) { | ||||
return $matches['version']; | return $matches['version']; | ||||
} else { | } else { | ||||
return false; | return false; | ||||
Context not available. | |||||
$messages = array(); | $messages = array(); | ||||
foreach ($lines as $line) { | foreach ($lines as $line) { | ||||
$matches = null; | $matches = null; | ||||
$match = preg_match( | $match = @preg_match( | ||||
'/^(?:(?<path>.+): )?'. | '/^(?:(?<path>.+): )?'. | ||||
'line (?<line>\d+), col (?<column>\d+), '. | 'line (?<line>\d+), col (?<column>\d+), '. | ||||
'(?<description>.*)$/', | '(?<description>.*)$/', | ||||
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