PHP Class phplinter\Lint\BaseLint

Show file Open project: robotis/PHPLinter

Protected Properties

Property Type Description
$locals * @var Array
$node * @var Object
$penalty * @var Float
$reports * @var Array

Public Methods

Method Description
__construct ( $node, $config ) ----------------------------------------------------------------------+ __construct
bind ( BaseLint &$parent ) : this ----------------------------------------------------------------------+ Bind parent node to current node
common_tokens ( $pos ) ----------------------------------------------------------------------+ Tokens common to all scopes.
lint ( ) : Array ----------------------------------------------------------------------+ Analyse node
penalty ( ) : Float ----------------------------------------------------------------------+ Penalty

Protected Methods

Method Description
add_parent_data ( $name, $type ) ----------------------------------------------------------------------+ Add data to node parent
find ( $pos, $token, $limit = 10 ) : Int ----------------------------------------------------------------------+ Find the next token.
next ( $pos ) : Int ----------------------------------------------------------------------+ Return the next meaningfull token
parse_args ( &$i ) : Array ----------------------------------------------------------------------+ Parse argument-list
parse_string ( $pos ) ----------------------------------------------------------------------+ Parse a string token
prev ( $pos ) : Int ----------------------------------------------------------------------+ Return the previous meaningfull token
process_args ( $locals, $args ) ----------------------------------------------------------------------+ Process argument list to function
process_locals ( $locals, $_locals, $args ) ----------------------------------------------------------------------+ Count and process locals at function scope
profile ( $flushmsg = false ) ----------------------------------------------------------------------+ Internal profiling
recurse ( ) ----------------------------------------------------------------------+ Analyse nodes owned by current node ----------------------------------------------------------------------+
report ( $flag, $extra = null, $line = null ) : FIXME ----------------------------------------------------------------------+ FIXME
sec_backtick ( $pos ) ----------------------------------------------------------------------+ Search for security infractions in backticks
sec_callbacks ( $pos ) ----------------------------------------------------------------------+ Search for security infractions in callback positions
sec_includes ( $pos ) ----------------------------------------------------------------------+ Search for security infractions in includes
sec_strings ( $pos ) ----------------------------------------------------------------------+ Search for security infractions in strings
security ( $pos ) ----------------------------------------------------------------------+ Search for security infractions

Method Details

__construct() public method

----------------------------------------------------------------------+ __construct
public __construct ( $node, $config )

add_parent_data() protected method

----------------------------------------------------------------------+ Add data to node parent
protected add_parent_data ( $name, $type )

bind() public method

----------------------------------------------------------------------+ Bind parent node to current node
public bind ( BaseLint &$parent ) : this
$parent BaseLint
return this ----------------------------------------------------------------------+

common_tokens() public method

----------------------------------------------------------------------+ Tokens common to all scopes.
public common_tokens ( $pos )

find() protected method

----------------------------------------------------------------------+ Find the next token.
protected find ( $pos, $token, $limit = 10 ) : Int
return Int ----------------------------------------------------------------------+

lint() public method

----------------------------------------------------------------------+ Analyse node
public lint ( ) : Array
return Array Reports ----------------------------------------------------------------------+

next() protected method

----------------------------------------------------------------------+ Return the next meaningfull token
protected next ( $pos ) : Int
return Int ----------------------------------------------------------------------+

parse_args() protected method

----------------------------------------------------------------------+ Parse argument-list
protected parse_args ( &$i ) : Array
return Array ----------------------------------------------------------------------+

parse_string() protected method

----------------------------------------------------------------------+ Parse a string token
protected parse_string ( $pos )

penalty() public method

----------------------------------------------------------------------+ Penalty
public penalty ( ) : Float
return Float ----------------------------------------------------------------------+

prev() protected method

----------------------------------------------------------------------+ Return the previous meaningfull token
protected prev ( $pos ) : Int
return Int ----------------------------------------------------------------------+

process_args() protected method

----------------------------------------------------------------------+ Process argument list to function
protected process_args ( $locals, $args )

process_locals() protected method

----------------------------------------------------------------------+ Count and process locals at function scope
protected process_locals ( $locals, $_locals, $args )

profile() protected method

----------------------------------------------------------------------+ Internal profiling
protected profile ( $flushmsg = false )

recurse() protected method

----------------------------------------------------------------------+ Analyse nodes owned by current node ----------------------------------------------------------------------+
protected recurse ( )

report() protected method

----------------------------------------------------------------------+ FIXME
protected report ( $flag, $extra = null, $line = null ) : FIXME
return FIXME ----------------------------------------------------------------------+

sec_backtick() protected method

----------------------------------------------------------------------+ Search for security infractions in backticks
protected sec_backtick ( $pos )

sec_callbacks() protected method

----------------------------------------------------------------------+ Search for security infractions in callback positions
protected sec_callbacks ( $pos )

sec_includes() protected method

----------------------------------------------------------------------+ Search for security infractions in includes
protected sec_includes ( $pos )

sec_strings() protected method

----------------------------------------------------------------------+ Search for security infractions in strings
protected sec_strings ( $pos )

security() protected method

----------------------------------------------------------------------+ Search for security infractions
protected security ( $pos )

Property Details

$locals protected property

* @var Array
protected $locals

$node protected property

* @var Object
protected $node

$penalty protected property

* @var Float
protected $penalty

$reports protected property

* @var Array
protected $reports