-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathruleset.xml
25 lines (21 loc) · 1.37 KB
/
ruleset.xml
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
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Corrivate_Magento2" xsi:noNamespaceSchemaLocation="../../../phpcs.xsd">
<description>The Corrivate take on the Magento 2 PHPCS ruleset.</description>
<rule ref="PSR12"/>
<rule ref="Magento2">
<!-- Our PHPStan level enforces actual typing -->
<!-- We only want to do annotation for array structure and exception throwing info -->
<exclude name="Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation"/>
<exclude name="Magento2.Annotation.MethodAnnotationStructure.MethodArguments"/>
<exclude name="Magento2.Annotation.MethodArguments.ArgumentMissing"/>
<exclude name="Magento2.Annotation.MethodArguments.NoCommentBlock"/>
<exclude name="Magento2.Annotation.MethodArguments.ParamMissing"/>
<exclude name="Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing"/>
<!-- This gets in the way of readability -->
<exclude name="Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines"/>
<!-- Conflicts with PSR12.ControlStructures.ControlStructureSpacing.FirstExpressionLine -->
<exclude name="PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace"/>
<!-- Necessary for admin styling -->
<exclude name="Magento2.Less.AvoidId.IdSelectorUsage"/>
</rule>
</ruleset>