Lines Matching refs:sniffs

96      * autoloader to look for sniffs outside the PHPCS install.
126 * An array of sniffs that are being used to check files.
130 protected $sniffs = array();
295 // Check for included sniffs.
494 * @param string|array $standards The set of code sniffs we are testing
514 * @param string|array $standards The set of code sniffs we are testing
527 $this->sniffs = array();
550 $sniffs = $this->_expandRulesetReference($restrictions[0], dirname($standard));
552 $sniffs = array();
572 echo "Registering sniffs in the $standardName standard... ";
578 $sniffs = array_merge($sniffs, $this->processRuleset($standard));
594 $this->registerSniffs($sniffs, $sniffRestrictions, $sniffExclusions);
598 $numSniffs = count($this->sniffs);
599 echo "DONE ($numSniffs sniffs registered)".PHP_EOL;
711 * Processes a single ruleset and returns a list of the sniffs it represents.
920 echo "=> Ruleset processing complete; included $included sniffs and excluded $excluded".PHP_EOL;
924 // sniff list, but filter out any excluded sniffs.
950 $sniffs = array();
996 $sniffs[] = $path;
999 return $sniffs;
1018 // Ignore internal sniffs codes as they are used to only
1029 // As sniffs can't begin with a full stop, assume references in
1044 // As sniffs can't begin with a tilde, assume references in
1094 // A directory of sniffs?
1154 // We are referencing a whole directory of sniffs.
1157 echo "\t\t* rule is referencing a directory of sniffs *".PHP_EOL;
1356 * Loads and stores sniffs objects used for sniffing files.
1393 // If they have specified a list of sniffs to restrict to, check
1401 // If they have specified a list of sniffs to exclude, check
1432 $this->sniffs = $listeners;
1448 foreach ($this->sniffs as $listenerClass) {
1723 * Run the code sniffs over a single given file.
1725 * Processes the file and runs the PHP_CodeSniffer sniffs to verify that it
1845 // Repopulate the sniffs because some of them save their state
1860 * Process the sniffs for a single file.
1925 * @param array $sniffs A list of sniffs to limit the docs to.
1930 public function generateDocs($standard, array $sniffs=array(), $generator='Text')
1937 $generator = new $class($standard, $sniffs);