-
Notifications
You must be signed in to change notification settings - Fork 17
/
phpcs.xml.dist
58 lines (54 loc) · 2.29 KB
/
phpcs.xml.dist
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?xml version="1.0"?>
<ruleset name="FACT-Finder">
<description>FACT-Finder Coding Standard</description>
<arg value="psw" />
<arg name="extensions" value="php,phtml" />
<arg name="ignore" value="*/vendor/*,src/Test/Integration/_files/*" />
<config name="ignore_warnings_on_exit" value="1" />
<rule ref="vendor/magento/magento-coding-standard/Magento2">
<exclude name="Magento2.Commenting" />
<exclude name="Magento2.Annotation" />
</rule>
<rule ref="Generic.CodeAnalysis.EmptyStatement" />
<rule ref="Generic.CodeAnalysis.UnusedFunctionParameter">
<exclude-pattern>*/Observer/*</exclude-pattern>
<exclude-pattern>*/Plugin/*</exclude-pattern>
<exclude-pattern>*/Setup/*</exclude-pattern>
</rule>
<rule ref="Generic.Commenting.Fixme" />
<rule ref="Generic.Commenting.Todo" />
<rule ref="Generic.ControlStructures.InlineControlStructure.NotAllowed">
<exclude-pattern>*.phtml</exclude-pattern>
</rule>
<rule ref="Generic.Files.LineLength">
<exclude-pattern>*.phtml</exclude-pattern>
<exclude-pattern>*Test.php</exclude-pattern>
<properties>
<property name="lineLimit" value="140" />
<property name="absoluteLineLimit" value="0" />
</properties>
</rule>
<rule ref="Generic.Formatting.SpaceAfterCast" />
<rule ref="Generic.Files.LineEndings">
<exclude name="Generic.Files.LineEndings.InvalidEOLChar"/>
</rule>
<rule ref="Generic.Metrics.CyclomaticComplexity">
<exclude-pattern>*/Setup/*</exclude-pattern>
</rule>
<rule ref="Internal.NoCodeFound">
<exclude-pattern>*.phtml</exclude-pattern>
</rule>
<rule ref="PSR1.Methods.CamelCapsMethodName.NotCamelCaps">
<exclude-pattern>*Test.php</exclude-pattern>
</rule>
<rule ref="Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis">
<exclude-pattern>*.phtml</exclude-pattern>
</rule>
<rule ref="Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword">
<exclude-pattern>*.phtml</exclude-pattern>
</rule>
<rule ref="Squiz.Strings.DoubleQuoteUsage.NotRequired" />
<rule ref="Magento2.Security.InsecureFunction.FoundWithAlternative">
<exclude-pattern>*Test.php</exclude-pattern>
</rule>
</ruleset>