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

Class: Generic_Sniffs_Debug_JSHintSniff

Source Location: /PHP_CodeSniffer-1.3.4/CodeSniffer/Standards/Generic/Sniffs/Debug/JSHintSniff.php

Class Overview


Generic_Sniffs_Debug_JSHintSniff.


Author(s):

Version:

  • Release: 1.3.4

Copyright:

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

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 30]
Generic_Sniffs_Debug_JSHintSniff.

Runs jshint.js on the file.



[ Top ]


Class Variables

$supportedTokenizers = array('JS')

[line 38]

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

Type:   array


[ Top ]



Method Detail

process   [line 63]

void process( PHP_CodeSniffer_File $phpcsFile, int $stackPtr)

Processes the tokens that this sniff is interested in.
  • Throws: PHP_CodeSniffer_Exception If jshint.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 46]

array(int) register( )

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

[ Top ]


Documentation generated on Thu, 17 May 2012 05:00:59 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.