- abstract public function lintSymbolName($type, $name, $default) — Callback invoked for each symbol, which can override the default
determination of name validity or accept it by returning $default. The
symbol types are: xhp-class, class, interface, function, method, parameter,
constant, and member.
- public static function isUpperCamelCase($symbol) — Returns true if a symbol name is UpperCamelCase.
- public static function isLowerCamelCase($symbol) — Returns true if a symbol name is lowerCamelCase.
- public static function isUppercaseWithUnderscores($symbol) — Returns true if a symbol name is UPPERCASE_WITH_UNDERSCORES.
- public static function isLowercaseWithUnderscores($symbol) — Returns true if a symbol name is lowercase_with_underscores.
- public static function stripPHPFunction($symbol) — Strip non-name components from PHP function symbols. Notably, this discards
the "__" magic-method signifier, to make a symbol appropriate for testing
with methods like @{method:isLowerCamelCase}.
- public static function stripPHPVariable($symbol) — Strip non-name components from PHP variable symbols. Notably, this discards
the "$", to make a symbol appropriate for testing with methods like
@{method:isLowercaseWithUnderscores}.
No methods for this task.
- final public function __construct() — The constructor is final because @{class:ArcanistXHPASTLinter} is
responsible for hook instantiation.