Skip to content

Commit

Permalink
Update drupal standards to use file paths to work properly in a phar
Browse files Browse the repository at this point in the history
  • Loading branch information
smmccabe committed Apr 22, 2020
1 parent 3b39ef9 commit 3842a0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function phpMD($path, $type) {

$runner->config = new Config();
$runner->config->files = [$path];
$runner->config->standards = ["Drupal"];
$runner->config->standards = ['./vendor/drupal/coder/coder_sniffer/Drupal'];
$runner->config->extensions = [
'php' => 'PHP',
'module' => 'PHP',
Expand All @@ -63,7 +63,7 @@ function phpMD($path, $type) {
print "phpcs Drupal: " . $faults . "\n";
$standards_faults += $faults;

$runner->config->standards = ['DrupalPractice'];
$runner->config->standards = ['./vendor/drupal/coder/coder_sniffer/DrupalPractice'];
$faults = $runner->run();
print "phpcs DrupalPractice: " . $faults . "\n";
$standards_faults += $faults;
Expand Down

0 comments on commit 3842a0f

Please sign in to comment.