Page MenuHomePhorge

D25126.1732295156.diff
No OneTemporary

D25126.1732295156.diff

diff --git a/src/lint/linter/ArcanistScriptAndRegexLinter.php b/src/lint/linter/ArcanistScriptAndRegexLinter.php
--- a/src/lint/linter/ArcanistScriptAndRegexLinter.php
+++ b/src/lint/linter/ArcanistScriptAndRegexLinter.php
@@ -203,7 +203,7 @@
* @task lint
*/
public function lintPath($path) {
- $output = idx($this->output, $path);
+ $output = idx($this->output, $path, '');
if (!strlen($output)) {
// No output, but it exited 0, so just move on.
return;
@@ -337,7 +337,7 @@
return array($line + 1, $char + 1);
}
- $line = idx($match, 'line');
+ $line = idx($match, 'line', '');
if (strlen($line)) {
$line = (int)$line;
if (!$line) {
@@ -376,7 +376,7 @@
'disabled' => ArcanistLintSeverity::SEVERITY_DISABLED,
);
- $severity_name = strtolower(idx($match, 'severity'));
+ $severity_name = strtolower(idx($match, 'severity', ''));
foreach ($map as $name => $severity) {
if (!empty($match[$name])) {

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 22, 17:05 (12 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
989243
Default Alt Text
D25126.1732295156.diff (1006 B)

Event Timeline