Skip to content

Commit

Permalink
Add phpcs.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
westonruter committed Nov 5, 2017
1 parent 61df188 commit adcca42
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions phpcs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0"?>
<ruleset name="WordPress Coding Standards for AMP">

<rule ref="WordPress-Core" />
<rule ref="WordPress-Docs" />
<rule ref="WordPress-Extra" />

<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" value="amp" />
</properties>
</rule>

<arg value="s"/>
<arg name="extensions" value="php"/>
<file>.</file>

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

0 comments on commit adcca42

Please sign in to comment.