Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2644289
D25126.1732295072.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
1006 B
Referenced Files
None
Subscribers
None
D25126.1732295072.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 22, 17:04 (11 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
989243
Default Alt Text
D25126.1732295072.diff (1006 B)
Attached To
Mode
D25126: Fix early exit from getMatchSeverity on null severity
Attached
Detach File
Event Timeline
Log In to Comment