-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml
More file actions
45 lines (38 loc) · 1.55 KB
/
Copy pathphpcs.xml
File metadata and controls
45 lines (38 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?xml version="1.0"?>
<ruleset name="Zendrop code-style standards"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd"
>
<!-- Main rule-->
<rule ref="PSR12"/>
<!-- Additional custom rules-->
<rule ref="Squiz.Strings.DoubleQuoteUsage.NotRequired"/>
<rule ref="Squiz.NamingConventions.ValidVariableName.NotCamelCaps"/>
<rule ref="SlevomatCodingStandard.Namespaces.UnusedUses">
<properties>
<property name="searchAnnotations" value="true"/>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.Classes.MethodSpacing">
<properties>
<property name="minLinesCount" value="1"/>
<property name="maxLinesCount" value="1"/>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.PHP.UselessSemicolon"/>
<!-- <rule ref="Squiz.PHP.NonExecutableCode"/> Temporary disabled until phpcs 3.8.0+ released -->
<rule ref="Generic.PHP.LowerCaseConstant"/>
<rule ref="Generic.NamingConventions.CamelCapsFunctionName">
<exclude-pattern>*/tests</exclude-pattern>
</rule>
<rule ref="Generic.CodeAnalysis.UselessOverridingMethod"/>
<rule ref="SlevomatCodingStandard.Namespaces.UseFromSameNamespace"/>
<rule ref="Squiz.PHP.CommentedOutCode"/>
<arg name="basepath" value="."/>
<file>./src</file>
<file>./config</file>
<file>./database</file>
<arg name="colors"/>
<arg value="spv"/>
<ini name="memory_limit" value="128M"/>
</ruleset>