diff options
author | Robert Lu <robberphex@gmail.com> | 2018-01-18 19:06:39 +0800 |
---|---|---|
committer | James E. King III <jking@apache.org> | 2018-01-24 00:07:54 -0500 |
commit | b03ca01cc9c46fc835174ab13b5a09f9cbf82249 (patch) | |
tree | e2e211481680b1d5dd52913376bc5787583069e3 /phpcs.xml.dist | |
parent | 8d96b3bbddb27aa4512031e0c923fe4c6865db07 (diff) | |
download | thrift-b03ca01cc9c46fc835174ab13b5a09f9cbf82249.tar.gz |
THRIFT-4460: Use PSR-2 as php library coding standard
Client: php
This closes #1472
Diffstat (limited to 'phpcs.xml.dist')
-rw-r--r-- | phpcs.xml.dist | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/phpcs.xml.dist b/phpcs.xml.dist new file mode 100644 index 000000000..9c65eaf98 --- /dev/null +++ b/phpcs.xml.dist @@ -0,0 +1,18 @@ +<?xml version="1.0"?> +<ruleset name="PHP_CodeSniffer"> + <description>The coding standard for PHP_CodeSniffer itself.</description> + + <file>lib/php/lib</file> + + <exclude-pattern>*/Standards/*/Tests/*\.(inc|css|js)</exclude-pattern> + + <arg name="basepath" value="."/> + <arg name="colors" /> + <arg name="parallel" value="4" /> + + <rule ref="PSR2"> + <exclude name="PSR2.Methods.MethodDeclaration.Underscore"/> + <exclude name="PSR2.Classes.PropertyDeclaration.Underscore"/> + </rule> + +</ruleset> |