Skip to content

Commit

Permalink
UHF-9367: Fix phpcs command
Browse files Browse the repository at this point in the history
  • Loading branch information
hyrsky committed Oct 7, 2024
1 parent fb9b774 commit 11c1c5b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ jobs:

- name: Run PHPCS
run: |
vendor/bin/phpcs public/modules/custom/ --ignore="*.js,*.css" --extensions=php,module,install --standard=Drupal,DrupalPractice
vendor/bin/phpcs public/themes/custom/ --ignore="*.js,*.css" --extensions=php,theme --standard=Drupal,DrupalPractice
vendor/bin/phpcs public/modules/custom/
vendor/bin/phpcs public/themes/custom/
- name: Run phpstan
run: vendor/bin/phpstan analyze
Expand Down
11 changes: 11 additions & 0 deletions phpcs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0"?>
<ruleset name="Drupal">
<arg name="extensions" value="php,module,install,theme,inc"/>
<exclude-pattern>*.css</exclude-pattern>
<exclude-pattern>*.js</exclude-pattern>
<rule ref="Drupal" />
<rule ref="DrupalPractice">
<exclude name="DrupalPractice.General.OptionsT.TforValue" />
<exclude name="DrupalPractice.Objects.UnusedPrivateMethod.UnusedMethod" />
</rule>
</ruleset>

0 comments on commit 11c1c5b

Please sign in to comment.