Skip to content

Commit

Permalink
Debug wpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
champsupertramp committed Apr 26, 2024
1 parent 14712be commit 2539d3e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/wpcs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ jobs:
- uses: actions/checkout@v2
- name: WPCS check
uses: 10up/wpcs-action@stable
with:
use_local_config: true
18 changes: 5 additions & 13 deletions phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,11 @@
<exclude-pattern>tests/</exclude-pattern>
</rule>

<rule ref="WordPress.Files.FileName.NotHyphenatedLowercase">
<exclude-pattern>i18n/</exclude-pattern>
<exclude-pattern>src/</exclude-pattern>
<exclude-pattern>src/*</exclude-pattern>
<exclude-pattern>tests/php</exclude-pattern>
<exclude-pattern>tests/Tools/</exclude-pattern>
</rule>
<rule ref="WordPress.Files.FileName.InvalidClassFileName">
<exclude-pattern>i18n/</exclude-pattern>
<exclude-pattern>src/</exclude-pattern>
<exclude-pattern>src/*</exclude-pattern>
<exclude-pattern>tests/php</exclude-pattern>
<exclude-pattern>tests/Tools/</exclude-pattern>
<rule ref="WordPress">
<!-- Any of `WordPress|WordPress-Core|WordPress-Docs|WordPress-Extra|WordPress-VIP-Go|WordPressVIPMinimum|10up-Default` -->
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase" />
<exclude name="WordPress.Files.FileName.InvalidClassFileName" />
</rule>


</ruleset>

0 comments on commit 2539d3e

Please sign in to comment.