final public static function loadAllRules()Inherited
final public static function loadAllRules()
Inherited
Return
wild |
final public function getLintID()Inherited
final public function getLintID()
Inherited
Return
wild |
public function getLintName()
public function getLintName()
Return
wild |
public function getLintSeverity()
public function getLintSeverity()
Return
wild |
public function getLinterConfigurationOptions()Inherited
public function getLinterConfigurationOptions()
Inherited
Return
wild |
public function setLinterConfigurationValue($key, $value)Inherited
public function setLinterConfigurationValue($key, $value)
Inherited
Parameters
$key | ||
$value |
Return
wild |
public function process($root)
public function process($root)
Parameters
XHPASTNode | $root |
Return
wild |
final public function setLinter($linter)Inherited
final public function setLinter($linter)
Inherited
Parameters
ArcanistXHPASTLinter | $linter |
Return
wild |
final public function getActivePath()Inherited
final public function getActivePath()
Inherited
Return
wild |
final public function getOtherLocation($offset, $path)Inherited
final public function getOtherLocation($offset, $path)
Inherited
Parameters
$offset | ||
$path |
Return
wild |
final protected function raiseLintAtPath($desc)Inherited
final protected function raiseLintAtPath($desc)
Inherited
Parameters
$desc |
Return
wild |
final public function raiseLintAtOffset($offset, $description, $original, $replacement)Inherited
final public function raiseLintAtOffset($offset, $description, $original, $replacement)
Inherited
Parameters
$offset | ||
$description | ||
$original | ||
$replacement |
Return
wild |
final protected function raiseLintAtToken($token, $description, $replace)Inherited
final protected function raiseLintAtToken($token, $description, $replace)
Inherited
Parameters
XHPASTToken | $token | |
$description | ||
$replace |
Return
wild |
final protected function raiseLintAtNode($node, $description, $replace)Inherited
final protected function raiseLintAtNode($node, $description, $replace)
Inherited
Parameters
XHPASTNode | $node | |
$description | ||
$replace |
Return
wild |
protected function evaluateStaticBoolean($string)Inherited
protected function evaluateStaticBoolean($string)
Inherited
ArcanistXHPASTLinterRule
Statically evaluate a boolean value from an XHP tree.
TODO: Improve this and move it to XHPAST proper?
Parameters
string | $string | The "semantic string" of a single value. |
Return
mixed | `true` or `false` if the value could be evaluated statically; `null` if static evaluation was not possible. |
protected function getAnonymousClosures($root)Inherited
protected function getAnonymousClosures($root)
Inherited
ArcanistXHPASTLinterRule
Retrieve all anonymous closure(s).
Returns all descendant nodes which represent an anonymous function declaration.
Parameters
XHPASTNode | $root | Root node. |
Return
AASTNodeList |
protected function getConcreteVariableString($variable)Inherited
protected function getConcreteVariableString($variable)
Inherited
ArcanistXHPASTLinterRule
TODO
Parameters
XHPASTNode | $variable |
Return
string |
protected function getFunctionCalls($root, $function_names)Inherited
protected function getFunctionCalls($root, $function_names)
Inherited
ArcanistXHPASTLinterRule
Retrieve all calls to some specified function(s).
Returns all descendant nodes which represent a function call to one of the specified functions.
Parameters
XHPASTNode | $root | Root node. |
list<string> | $function_names | Function names. |
Return
AASTNodeList |
final protected function getModifiers($node)Inherited
final protected function getModifiers($node)
Inherited
ArcanistXHPASTLinterRule
Get class/method modifiers.
Parameters
XHPASTNode | $node | A node of type `n_CLASS_DECLARATION` or `n_METHOD_DECLARATION`. |
Return
map<string, bool> | Class/method modifiers. |
public function getSuperGlobalNames()Inherited
public function getSuperGlobalNames()
Inherited
ArcanistXHPASTLinterRule
Get PHP superglobals.
Return
list<string> |
private function lintStrstrUsedForCheck($root)
private function lintStrstrUsedForCheck($root)
Parameters
XHPASTNode | $root |
Return
wild |
private function lintStrposUsedForStart($root)
private function lintStrposUsedForStart($root)
Parameters
XHPASTNode | $root |
Return
wild |