Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/xhpast/ArcanistXHPASTLinterRule.php
<?php | <?php | ||||
abstract class ArcanistXHPASTLinterRule extends Phobject { | abstract class ArcanistXHPASTLinterRule extends Phobject { | ||||
private $linter = null; | private $linter = null; | ||||
private $lintID = null; | private $lintID = null; | ||||
protected $version; | protected $version; | ||||
protected $windowsVersion; | protected $windowsVersion; | ||||
final public static function loadAllRules() { | final public static function loadAllRules() { | ||||
return id(new PhutilClassMapQuery()) | return (new PhutilClassMapQuery()) | ||||
->setAncestorClass(__CLASS__) | ->setAncestorClass(__CLASS__) | ||||
->setUniqueMethod('getLintID') | ->setUniqueMethod('getLintID') | ||||
->execute(); | ->execute(); | ||||
} | } | ||||
final public function getLintID() { | final public function getLintID() { | ||||
if ($this->lintID === null) { | if ($this->lintID === null) { | ||||
$class = new ReflectionClass($this); | $class = new ReflectionClass($this); | ||||
▲ Show 20 Lines • Show All 256 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