Skip to content

Commit 3842a0f

Browse files
committed
Update drupal standards to use file paths to work properly in a phar
1 parent 3b39ef9 commit 3842a0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function phpMD($path, $type) {
4444

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

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

0 commit comments

Comments
 (0)