Skip to content

Commit a4d5a49

Browse files
xendkspaceo
authored andcommitted
Use dealerdirect/phpcodesniffer-composer-installer
1 parent 9fc05bb commit a4d5a49

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
path: drupal
2323
- name: Install phpcs
2424
working-directory: drupal
25-
run: composer require squizlabs/php_codesniffer
25+
run: composer require squizlabs/php_codesniffer dealerdirect/phpcodesniffer-composer-installer
2626
- name: Copy phpcs rules
2727
uses: canastro/[email protected]
2828
with:
@@ -32,4 +32,4 @@ jobs:
3232
uses: ./
3333
with:
3434
path: drupal
35-
reviewdog_token: ${{ secrets.GITHUB_TOKEN }}
35+
reviewdog_token: ${{ secrets.GITHUB_TOKEN }}

test-assets/phpcs.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
<arg name="extensions" value="php,module,inc,install,test,profile,theme,css,info,txt,md,yml"/>
44
<file>web/sites/default</file>
55
<!-- Ignore generated assets -->
6-
<rule ref="./vendor/drupal/coder/coder_sniffer/Drupal/ruleset.xml">
6+
<rule ref="Drupal">
77
<!-- Skip warnings about info file keys that's added by drupal.org. -->
88
<!-- <exclude name="Drupal.InfoFiles.AutoAddedKeys"/> -->
99
</rule>
10-
<rule ref="./vendor/drupal/coder/coder_sniffer/DrupalPractice/ruleset.xml"/>
10+
<rule ref="DrupalPractice"/>
1111
</ruleset>

0 commit comments

Comments
 (0)