Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14231494
D18284.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D18284.diff
View Options
diff --git a/src/lint/linter/ArcanistXHPASTLinter.php b/src/lint/linter/ArcanistXHPASTLinter.php
--- a/src/lint/linter/ArcanistXHPASTLinter.php
+++ b/src/lint/linter/ArcanistXHPASTLinter.php
@@ -49,18 +49,23 @@
public function getAdditionalInformation() {
$table = id(new PhutilConsoleTable())
->setBorders(true)
- ->addColumn('id', array('title' => pht('ID')))
- ->addColumn('class', array('title' => pht('Class')))
- ->addColumn('name', array('title' => pht('Name')));
+ ->addColumn('id', array('title' => pht('ID'), 'align' => 'right'))
+ ->addColumn('class', array('title' => pht('Class')))
+ ->addColumn('name', array('title' => pht('Name')))
+ ->addColumn('severity', array('title' => pht('Default Severity')));
$rules = $this->rules;
ksort($rules);
foreach ($rules as $id => $rule) {
+ $severity = ArcanistLintSeverity::getStringForSeverity(
+ $rule->getLintSeverity());
+
$table->addRow(array(
'id' => $id,
'class' => get_class($rule),
'name' => $rule->getLintName(),
+ 'severity' => $severity,
));
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 12, 11:42 PM (20 h, 51 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6872752
Default Alt Text
D18284.diff (1 KB)
Attached To
Mode
D18284: Include default severity in XHPAST lint rule list
Attached
Detach File
Event Timeline
Log In to Comment