diff options
Diffstat (limited to 'phpcs.xml')
-rwxr-xr-x | phpcs.xml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/phpcs.xml b/phpcs.xml new file mode 100755 index 0000000..76dc14b --- /dev/null +++ b/phpcs.xml @@ -0,0 +1,19 @@ +<?xml version="1.0"?> +<ruleset> + <!-- 2. General --> + <rule ref="Generic.NamingConventions.UpperCaseConstantName"/> + <rule ref="Generic.CodeAnalysis.UnusedFunctionParameter"/> + <rule ref="Generic.Strings.UnnecessaryStringConcat"/> + <!-- Include the whole PSR-2 standard --> + <rule ref="PSR2"> + <exclude name="Generic.Files.LineLength"/> + </rule> + <rule ref="PEAR.Commenting.FunctionComment"> + <exclude name="PEAR.Commenting.FunctionComment.MissingReturn"/> + <exclude name="PEAR.Commenting.FunctionComment.MissingParamComment"/> + <exclude name="PEAR.Commenting.FunctionComment.SpacingBeforeTags"/> + <exclude name="PEAR.Commenting.FunctionComment.MissingParamTag"/> + <exclude name="PEAR.Commenting.FunctionComment.Missing"/> + <exclude name="PEAR.Commenting.FunctionComment.ParameterCommentsNotAligned"/> + </rule> +</ruleset> |