Skip to content

Commit 21e278c

Browse files
committed
Fixes acquia#1786: Allow PHPCS to use DrupalPractice standard.
1 parent cf39f0a commit 21e278c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

config/build.yml

+1
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ reports:
111111

112112
# @todo Move to subkey of validate.
113113
phpcs:
114+
standard: Drupal,DrupalPractice
114115
filesets:
115116
- files.php.custom.modules
116117
- files.php.tests

src/Robo/Commands/Validate/PhpcsCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class PhpcsCommand extends BltTasks {
1717
* @hook init
1818
*/
1919
public function initialize() {
20-
$this->standard = $this->getConfigValue('repo.root') . '/vendor/drupal/coder/coder_sniffer/Drupal/ruleset.xml';
20+
$this->standard = $this->getConfigValue('phpcs.standard');
2121
}
2222

2323
/**

0 commit comments

Comments
 (0)