Add PHPCompatibility ruleset to coding standards check

This commit is contained in:
Zach Borboa
2021-09-21 11:12:01 -04:00
parent a4d91d28ba
commit bd85374938
2 changed files with 6 additions and 0 deletions
+1
View File
@@ -19,6 +19,7 @@
},
"require-dev": {
"ext-gd": "*",
"phpcompatibility/php-compatibility": "*",
"phpunit/phpunit": "*",
"squizlabs/php_codesniffer": "*"
},
+5
View File
@@ -1,5 +1,10 @@
<?xml version="1.0"?>
<ruleset name="PSR2Modified">
<!-- Run against the PHPCompatibility ruleset. -->
<rule ref="PHPCompatibility" />
<config name="installed_paths" value="vendor/phpcompatibility/php-compatibility" />
<!-- Run against the PSR2 ruleset with some exclusions. -->
<rule ref="PSR2">
<exclude name="Generic.Functions.FunctionCallArgumentSpacing.TooMuchSpaceAfterComma" />
<exclude name="PSR1.Methods.CamelCapsMethodName.NotCamelCaps" />