Skip to content

Instantly share code, notes, and snippets.

@sarahcssiqueira
Created August 3, 2023 23:18
Show Gist options
  • Save sarahcssiqueira/0ab62b17b5ef435e31304104591081ab to your computer and use it in GitHub Desktop.
Save sarahcssiqueira/0ab62b17b5ef435e31304104591081ab to your computer and use it in GitHub Desktop.
Workaround to handle PSR-4 && WordPress Coding Standards at same time
<?xml version="1.0"?>
<ruleset name="CS">
<description>PHPCS example</description>
<config name="testVersion" value="5.6-"/>
<exclude-pattern>vendor/*</exclude-pattern>
<arg value="ps"/>
<arg name="colors"/>
<arg name="parallel" value="100"/>
<arg name="extensions" value="php"/>
<arg name="cache" value=".phpcs.cache"/>
<rule ref="WordPress">
<!-- PSR4 -->
<exclude name="WordPress.Files.FileName" />
</rule>
<rule ref="WordPress-Extra"/>
<rule ref="WordPress-Docs"/>
</ruleset>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment