Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/HuasoFoundries/phpPgAdmin6.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '.phpcs.xml')
-rw-r--r--.phpcs.xml28
1 files changed, 21 insertions, 7 deletions
diff --git a/.phpcs.xml b/.phpcs.xml
index ad9c46af..da3854a5 100644
--- a/.phpcs.xml
+++ b/.phpcs.xml
@@ -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