-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy path.phpcs.xml.dist
41 lines (41 loc) · 2.05 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
<?xml version="1.0"?>
<ruleset name="Magento 2 module PHPCS">
<file>.</file>
<arg name="extensions" value="php,phtml"/>
<arg name="parallel" value="4"/>
<exclude-pattern>*.xml</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/Test/.generated/tmp/generated/code/*</exclude-pattern>
<arg name="colors"/>
<arg value="s"/>
<rule ref="Magento2">
<exclude name="Squiz.Commenting.ClassComment"/>
<exclude name="Squiz.CSS.NamedColours.Forbidden"/>
<exclude name="Magento2.Classes.AbstractApi"/>
<exclude name="Magento2.Commenting.ConstantsPHPDocFormatting"/>
<exclude name="Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing"/>
<exclude name="Magento2.Less"/>
<exclude name="Magento2.Annotation.MethodAnnotationStructure"/>
<exclude name="Magento2.Annotation.MethodArguments.MethodArguments"/>
<exclude name="Magento2.Annotation.MethodArguments.NoCommentBlock"/>
</rule>
<rule ref="Magento2.Legacy.PhtmlTemplate.FoundDataMageInit">
<exclude-pattern>*.phtml</exclude-pattern>
</rule>
<rule ref="SlevomatCodingStandard.PHP">
<exclude name="SlevomatCodingStandard.PHP.RequireExplicitAssertion.RequiredExplicitAssertion"/>
<exclude name="SlevomatCodingStandard.PHP.DisallowReference"/>
</rule>
<rule ref="SlevomatCodingStandard.Classes.UnusedPrivateElements"/>
<rule ref="SlevomatCodingStandard.Namespaces.UnusedUses"/>
<rule ref="SlevomatCodingStandard.TypeHints.NullableTypeForNullDefaultValue"/>
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHintSpacing"/>
<rule ref="SlevomatCodingStandard.Namespaces.FullyQualifiedClassNameInAnnotation"/>
<rule ref="SlevomatCodingStandard.Arrays.TrailingArrayComma"/>
<rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes">
<properties>
<property name="newlinesCountBetweenOpenTagAndDeclare" value="1"/>
<property name="spacesCountAroundEqualsSign" value="0"/>
</properties>
</rule>
</ruleset>