Lines Matching full:standard
281 $defaults['standard'] = null;
374 // If this is a phar file, check for the standard in the config.
375 $standard = PHP_CodeSniffer::getConfigData('standard');
376 if ($standard !== null) {
377 $defaults['standard'] = $standard;
801 } else if (substr($arg, 0, 9) === 'standard=') {
804 $this->values['standard'] = explode(',', $standards);
919 if ($values['standard'] === null) {
920 $values['standard'] = $this->validateStandard(null);
923 foreach ($values['standard'] as $standard) {
925 $standard,
934 // If no standard is supplied, get the default.
935 $values['standard'] = $this->validateStandard($values['standard']);
936 foreach ($values['standard'] as $standard) {
937 if (PHP_CodeSniffer::isInstalledStandard($standard) === false) {
938 // They didn't select a valid coding standard, so help them
940 echo 'ERROR: the "'.$standard.'" coding standard is not installed. ';
947 foreach ($values['standard'] as $standard) {
948 $this->explainStandard($standard);
956 $phpcs->initStandard($values['standard'], $values['sniffs'], $values['exclude']);
1143 // They did not supply a standard to use.
1163 $standard = PHP_CodeSniffer::getConfigData('default_standard');
1164 if ($standard === null) {
1165 // Product default standard.
1166 $standard = 'PEAR';
1169 return explode(',', $standard);
1175 // Check if the standard name is valid, or if the case is invalid.
1177 foreach ($standards as $standard) {
1179 if (strtolower($standard) === strtolower($validStandard)) {
1180 $standard = $validStandard;
1185 $cleaned[] = $standard;
1194 * Prints a report showing the sniffs contained in a standard.
1196 * @param string $standard The standard to validate.
1200 public function explainStandard($standard) argument
1203 $phpcs->process(array(), $standard);
1215 echo PHP_EOL."The $standard standard contains $sniffCount sniffs".PHP_EOL;
1308 …echo ' [--standard=<standard>] [--sniffs=<sniffs>] [--exclude=<sniffs>] [--encoding=<encoding>]…
1317 echo ' -e Explain a standard by showing the sniffs it includes'.PHP_EOL;
1347 echo ' (all sniffs must be part of the specified standard)'.PHP_EOL;
1349 echo ' <standard> The name or path of the coding standard to use'.PHP_EOL;
1363 …echo ' [--standard=<standard>] [--sniffs=<sniffs>] [--exclude=<sniffs>] [--suffix=<suffix>]'.PH…
1387 echo ' (all sniffs must be part of the specified standard)'.PHP_EOL;
1389 echo ' <standard> The name or path of the coding standard to use'.PHP_EOL;
1412 echo "The only coding standard installed is $lastStandard".PHP_EOL;