Skip to content

Commit

Permalink
Updated PHPCS options
Browse files Browse the repository at this point in the history
  • Loading branch information
duracelltomi committed May 30, 2022
1 parent 32fec87 commit c359072
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 23 deletions.
25 changes: 25 additions & 0 deletions phpcs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0"?>
<ruleset name="WordPress Coding Standards for Plugins">
<description>Generally-applicable sniffs for WordPress plugins and theme development</description>

<!-- Default Rules -->
<rule ref="WordPress" />
<rule ref="WordPress-Core" />
<rule ref="WordPress-Extra" />
<rule ref="PHPCompatibility" />

<!-- Exclude Common Paths. -->
<exclude-pattern>*/wptest/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/integration/whichbrowser/*</exclude-pattern>
<exclude-pattern>*/PHPCompatibility/Tests/Keywords/ForbiddenNames/*\.php</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/spec/*</exclude-pattern>
<exclude-pattern>*/wpcs/*</exclude-pattern>

<!-- Check up to 8 files simultanously. -->
<arg name="parallel" value="8"/>

<config name="testVersion" value="7.0-"/>
</ruleset>
23 changes: 0 additions & 23 deletions phpcs.xml.dist

This file was deleted.

0 comments on commit c359072

Please sign in to comment.