Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/standards/ArcanistLinterStandard.php
Show First 20 Lines • Show All 85 Lines • ▼ Show 20 Lines | abstract class ArcanistLinterStandard extends Phobject { | ||||
} | } | ||||
/** | /** | ||||
* Load all linter standards. | * Load all linter standards. | ||||
* | * | ||||
* @return list<ArcanistLinterStandard> | * @return list<ArcanistLinterStandard> | ||||
*/ | */ | ||||
final public static function loadAllStandards() { | final public static function loadAllStandards() { | ||||
return id(new PhutilClassMapQuery()) | return (new PhutilClassMapQuery()) | ||||
->setAncestorClass(__CLASS__) | ->setAncestorClass(__CLASS__) | ||||
->setUniqueMethod('getKey') | ->setUniqueMethod('getKey') | ||||
->execute(); | ->execute(); | ||||
} | } | ||||
/** | /** | ||||
* Load all linter standards which support a specified linter. | * Load all linter standards which support a specified linter. | ||||
* | * | ||||
Show All 19 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