diff options
author | Robert Lu <robberphex@gmail.com> | 2018-01-25 23:19:41 +0800 |
---|---|---|
committer | James E. King III <jking@apache.org> | 2018-01-29 15:44:43 -0500 |
commit | 12f124c19a1a9f00c1979dbd2d5aac6f01c0e248 (patch) | |
tree | 89bd7b0647aef2b308c25c72cb9fdea5d3f9f315 /phpcs.xml.dist | |
parent | 3d556248a8b97310da49939195330691dfe9d9ad (diff) | |
download | thrift-12f124c19a1a9f00c1979dbd2d5aac6f01c0e248.tar.gz |
THRIFT-4475: PSR-2 support for lib/php/test
Client: php
This closes #1482
Diffstat (limited to 'phpcs.xml.dist')
-rw-r--r-- | phpcs.xml.dist | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/phpcs.xml.dist b/phpcs.xml.dist index 9c65eaf98..180388aea 100644 --- a/phpcs.xml.dist +++ b/phpcs.xml.dist @@ -1,10 +1,10 @@ <?xml version="1.0"?> -<ruleset name="PHP_CodeSniffer"> - <description>The coding standard for PHP_CodeSniffer itself.</description> +<ruleset name="Apache_Thrift"> + <description>The coding standard for thrift.</description> <file>lib/php/lib</file> - - <exclude-pattern>*/Standards/*/Tests/*\.(inc|css|js)</exclude-pattern> + <file>lib/php/test</file> + <exclude-pattern>lib/php/test/packages/*</exclude-pattern> <arg name="basepath" value="."/> <arg name="colors" /> @@ -15,4 +15,11 @@ <exclude name="PSR2.Classes.PropertyDeclaration.Underscore"/> </rule> + <rule ref="PSR1.Files.SideEffects"> + <exclude-pattern>lib/php/test/*</exclude-pattern> + </rule> + <rule ref="Generic.Files.LineLength"> + <exclude-pattern>lib/php/test/*</exclude-pattern> + </rule> + </ruleset> |