Page MenuHomePhabricator

D18284.diff
No OneTemporary

D18284.diff

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

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)

Event Timeline