Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/ArcanistScriptAndRegexLinter.php
Context not available. | |||||
*/ | */ | ||||
public function lintPath($path) { | public function lintPath($path) { | ||||
$output = idx($this->output, $path); | $output = idx($this->output, $path); | ||||
if (!strlen($output)) { | if (!@strlen($output)) { | ||||
// No output, but it exited 0, so just move on. | // No output, but it exited 0, so just move on. | ||||
return; | return; | ||||
} | } | ||||
Context not available. | |||||
} | } | ||||
$line = idx($match, 'line'); | $line = idx($match, 'line'); | ||||
if (strlen($line)) { | if (@strlen($line)) { | ||||
$line = (int)$line; | $line = (int)$line; | ||||
if (!$line) { | if (!$line) { | ||||
$line = 1; | $line = 1; | ||||
Context not available. | |||||
'disabled' => ArcanistLintSeverity::SEVERITY_DISABLED, | 'disabled' => ArcanistLintSeverity::SEVERITY_DISABLED, | ||||
); | ); | ||||
$severity_name = strtolower(idx($match, 'severity')); | $severity_name = @strtolower(idx($match, 'severity')); | ||||
foreach ($map as $name => $severity) { | foreach ($map as $name => $severity) { | ||||
if (!empty($match[$name])) { | if (!empty($match[$name])) { | ||||
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