diff options
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> |