Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/ArcanistLesscLinter.php
Context not available. | |||||
$matches = array(); | $matches = array(); | ||||
$regex = '/^lessc (?P<version>\d+\.\d+\.\d+)\b/'; | $regex = '/^lessc (?P<version>\d+\.\d+\.\d+)\b/'; | ||||
if (preg_match($regex, $stdout, $matches)) { | if (@preg_match($regex, $stdout, $matches)) { | ||||
$version = $matches['version']; | $version = $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( | ||||
'/^(?P<name>\w+): (?P<description>.+) '. | '/^(?P<name>\w+): (?P<description>.+) '. | ||||
'in (?P<path>.+|-) '. | 'in (?P<path>.+|-) '. | ||||
'on line (?P<line>\d+), column (?P<column>\d+):$/', | 'on line (?P<line>\d+), column (?P<column>\d+):$/', | ||||
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