Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/ArcanistXHPASTLinter.php
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | public function getInfoName() { | ||||
return pht('XHPAST Lint'); | return pht('XHPAST Lint'); | ||||
} | } | ||||
public function getInfoDescription() { | public function getInfoDescription() { | ||||
return pht('Use XHPAST to enforce coding conventions on PHP source files.'); | return pht('Use XHPAST to enforce coding conventions on PHP source files.'); | ||||
} | } | ||||
public function getAdditionalInformation() { | public function getAdditionalInformation() { | ||||
$table = id(new PhutilConsoleTable()) | $table = (new PhutilConsoleTable()) | ||||
->setBorders(true) | ->setBorders(true) | ||||
->addColumn('id', array('title' => pht('ID'))) | ->addColumn('id', array('title' => pht('ID'))) | ||||
->addColumn('class', array('title' => pht('Class'))) | ->addColumn('class', array('title' => pht('Class'))) | ||||
->addColumn('name', array('title' => pht('Name'))); | ->addColumn('name', array('title' => pht('Name'))); | ||||
$rules = $this->rules; | $rules = $this->rules; | ||||
ksort($rules); | ksort($rules); | ||||
▲ Show 20 Lines • Show All 103 Lines • Show Last 20 Lines |
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