Created
August 3, 2023 23:18
-
-
Save sarahcssiqueira/0ab62b17b5ef435e31304104591081ab to your computer and use it in GitHub Desktop.
Workaround to handle PSR-4 && WordPress Coding Standards at same time
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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