PHP_CodeSniffer
[ class tree: PHP_CodeSniffer ] [ index: PHP_CodeSniffer ] [ all elements ]

Class: Generic_Sniffs_Debug_ClosureLinterSniff

Source Location: /PHP_CodeSniffer-2.7.1/CodeSniffer/Standards/Generic/Sniffs/Debug/ClosureLinterSniff.php

Class Overview


Generic_Sniffs_Debug_ClosureLinterSniff.


Author(s):

Version:

  • Release: 2.7.1

Copyright:

  • 2006-2014 Squiz Pty Ltd (ABN 77 084 670 600)

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 28]
Generic_Sniffs_Debug_ClosureLinterSniff.

Runs gjslint on the file.



[ Top ]


Class Variables

$errorCodes = array()

[line 38]

A list of error codes that should show errors.

All other error codes will show warnings.

  • Access: public

Type:   int


[ Top ]

$ignoreCodes = array()

[line 45]

A list of error codes to ignore.
  • Access: public

Type:   int


[ Top ]

$supportedTokenizers = array('JS')

[line 52]

A list of tokenizers this sniff supports.
  • Access: public

Type:   array


[ Top ]



Method Detail

process   [line 77]

void process( PHP_CodeSniffer_File $phpcsFile, int $stackPtr)

Processes the tokens that this sniff is interested in.
  • Throws: PHP_CodeSniffer_Exception If jslint.js could not be run
  • Access: public

Parameters:

PHP_CodeSniffer_File   $phpcsFile   —  The file where the token was found.
int   $stackPtr   —  The position in the stack where the token was found.

[ Top ]

register   [line 60]

int[] register( )

Returns the token types that this sniff is interested in.
  • Access: public

[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:50:42 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.