Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/ArcanistLinter.php
Context not available. | |||||
} | } | ||||
foreach ($this->customSeverityRules as $rule => $severity) { | foreach ($this->customSeverityRules as $rule => $severity) { | ||||
if (preg_match($rule, $code)) { | if (@preg_match($rule, $code)) { | ||||
return $severity; | return $severity; | ||||
} | } | ||||
} | } | ||||
Context not available. | |||||
} | } | ||||
foreach ($value as $rule => $severity) { | foreach ($value as $rule => $severity) { | ||||
if (@preg_match($rule, '') === false) { | if (@@preg_match($rule, '') === false) { | ||||
throw new Exception( | throw new Exception( | ||||
pht( | pht( | ||||
'Severity rule "%s" is not a valid regular expression.', | 'Severity rule "%s" is not a valid regular expression.', | ||||
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