| Source for file CSSLintSniff.phpDocumentation is available at CSSLintSniff.php 
 * Runs csslint on the file. * @author    Roman Levishchenko <index.0h@gmail.com> * @copyright 2013-2014 Roman Levishchenko * @license   https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licencenamespace PHP_CodeSniffer\Standards\Generic\Sniffs\Debug;use PHP_CodeSniffer\Sniffs\Sniff;use PHP_CodeSniffer\Files\File;use PHP_CodeSniffer\Config;class CSSLintSniff implements Sniff     * A list of tokenizers this sniff supports.    public $supportedTokenizers = array('CSS') ;     * Returns the token types that this sniff is interested in.    public function register()        return array( T_OPEN_TAG) ;     * Processes the tokens that this sniff is interested in.     * @param \PHP_CodeSniffer\Files\File $phpcsFile The file where the token was found.     * @param int                         $stackPtr  The position in the stack where    public function process( File $phpcsFile, $stackPtr)        $csslintPath = Config:: getExecutablePath('csslint') ;        if ($csslintPath === null) {        $fileName = $phpcsFile-> getFilename() ;        exec($cmd, $output, $retval);        for ($i = 0; $i < $count ; $i ++) {                '/(error|warning) at line (\d+)/',            $line    = (int) $matches[ 2] ;            $message = 'csslint says: ' .$output[($i + 1)] ;            // First line is message with error line and error code.            // Second is error message.            // Third is wrong line in file.            $phpcsFile->addWarningOnLine($message, $line, 'ExternalTool') ;        // Ignore the rest of the file.        return ($phpcsFile->numTokens + 1) ;
		    
 
		    Documentation generated on Mon, 11 Mar 2019 15:27:22 -0400 by phpDocumentor 1.4.4 . PEAR Logo Copyright ©  PHP Group 2004.
	       |