forked from FACT-Finder-Web-Components/magento2-module
-
Notifications
You must be signed in to change notification settings - Fork 1
/
phpcs.xml.dist
53 lines (50 loc) · 2.1 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
<?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/*" />
<config name="ignore_warnings_on_exit" value="1" />
<rule ref="vendor/magento-ecg/coding-standard/EcgM2" />
<rule ref="EcgM2.Plugins.Plugin.PluginWarning">
<include-pattern>*/Plugin/*</include-pattern>
</rule>
<rule ref="Generic.Arrays.DisallowLongArraySyntax" />
<rule ref="Generic.CodeAnalysis.UnusedFunctionParameter">
<exclude-pattern>*/Observer/*</exclude-pattern>
<exclude-pattern>*/Plugin/*</exclude-pattern>
<exclude-pattern>*/Setup/*</exclude-pattern>
</rule>
<rule ref="Generic.Files.LineLength">
<exclude-pattern>*.phtml</exclude-pattern>
<exclude-pattern>*Test.php</exclude-pattern>
<properties>
<property name="lineLimit" value="120" />
<property name="absoluteLineLimit" value="0" />
</properties>
</rule>
<rule ref="Generic.Formatting.SpaceAfterCast" />
<rule ref="Generic.Metrics.CyclomaticComplexity">
<exclude-pattern>*/Setup/*</exclude-pattern>
</rule>
<rule ref="Generic.PHP.LowerCaseConstant" />
<rule ref="Generic.PHP.LowerCaseKeyword" />
<rule ref="PSR1.Methods.CamelCapsMethodName.NotCamelCaps">
<exclude-pattern>*Test.php</exclude-pattern>
</rule>
<rule ref="PSR2.Classes.PropertyDeclaration.Underscore" />
<rule ref="PSR2.Files.EndFileNewline" />
<rule ref="PSR2.Methods.MethodDeclaration.Underscore" />
<rule ref="Squiz.ControlStructures.ControlSignature">
<properties>
<property name="requiredSpacesBeforeColon" value="0" />
</properties>
</rule>
<rule ref="Squiz.ControlStructures.ControlSignature.NewlineAfterOpenBrace">
<exclude-pattern>*.phtml</exclude-pattern>
</rule>
<rule ref="Squiz.Functions.GlobalFunction">
<exclude-pattern>*Test.php</exclude-pattern>
</rule>
<rule ref="Squiz.Strings.DoubleQuoteUsage.NotRequired" />
</ruleset>