Skip to content

Commit

Permalink
Merge pull request #67 from rtCamp/feature/GH-66
Browse files Browse the repository at this point in the history
feature/GH-66 : Add PHPCS ruleset
  • Loading branch information
thrijith authored Jan 30, 2020
2 parents ec22c3a + ced9320 commit 293dbf8
Showing 1 changed file with 25 additions and 0 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="AMP Admanager PHPCS Ruleset">
<description>WordPress Coding Standards</description>

<rule ref="WordPress-Docs" />
<rule ref="WordPress-Core">
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase" />
<exclude name="WordPress.Files.FileName.InvalidClassFileName" />
</rule>
<rule ref="WordPress" />

<config name="testVersion" value="5.4-"/>

<arg name="extensions" value="php"/>

<rule ref="PHPCompatibility">
<exclude name="Generic.Arrays.DisallowShortArraySyntax.Found"/>
</rule>

<exclude-pattern>tests/</exclude-pattern>
<exclude-pattern>.github/</exclude-pattern>
<exclude-pattern>*/dev-lib/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
</ruleset>

0 comments on commit 293dbf8

Please sign in to comment.