diff options
Diffstat (limited to '.phpcs.xml')
-rw-r--r-- | .phpcs.xml | 28 |
1 files changed, 21 insertions, 7 deletions
@@ -1,19 +1,33 @@ <?xml version="1.0"?> <ruleset name="Slim coding standard"> <description>Slim coding standard</description> - <file>lib</file> + <!-- Paths to check --> + <file>tests</file> + <file>src</file> - <exclude-pattern>*/lib/_(boilerplate|bootstrap)\.php$</exclude-pattern> + <exclude-pattern>*/src/router\.php$</exclude-pattern> + <exclude-pattern>*/src/translations/.*$</exclude-pattern> <!-- display progress --> <arg value="p"/> <!-- use colors in output --> <arg name="colors"/> <!-- inherit rules from: --> - <rule ref="PSR2"/> - <rule ref="Generic.Arrays.DisallowLongArraySyntax"/> + <!-- inherit rules from: --> +<rule ref="PSR2"> + <exclude name="PSR2.Classes.PropertyDeclaration.Underscore"/> + <exclude name="PSR2.Methods.MethodDeclaration.Underscore"/> +</rule> +<rule ref="PSR1"> + <exclude name="PSR1.Methods.CamelCapsMethodName.NotCamelCaps"/> +</rule> - <!-- Paths to check --> - <file>Slim</file> - <file>tests</file> + <rule ref="Generic.Arrays.DisallowLongArraySyntax"/> + <rule ref="Generic.Files.LineLength"> + <properties> + <property name="lineLimit" value="170"/> + <property name="absoluteLineLimit" value="190"/> + </properties> + </rule> </ruleset> +
\ No newline at end of file |