-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.phpcs.xml
26 lines (26 loc) · 1.41 KB
/
.phpcs.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
26
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd"
name="XML Validator Magento Coding Standards">
<description>Coding standards for the XML Validator Adobe Commerce extension</description>
<arg name="extensions" value="php"/>
<arg name="colors"/>
<arg value="sp"/>
<file>./src</file>
<file>./test</file>
<rule ref="PSR12"/>
<rule ref="Magento2">
<!-- Disable rules requiring type annotations made redundant by type hints and return types -->
<exclude name="Magento2.Annotation.MethodArguments.NoCommentBlock"/>
<exclude name="Magento2.Annotation.MethodArguments.ParamMissing"/>
<exclude name="Magento2.Annotation.MethodArguments.ArgumentMissing"/>
<exclude name="Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation"/>
<exclude name="Magento2.Annotation.MethodAnnotationStructure.MethodArguments"/>
<exclude name="Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing"/>
<!-- Suppress warning about PSR-12-style control structures -->
<exclude name="PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace"/>
</rule>
<rule ref="Magento2.PHP.FinalImplementation.FoundFinal">
<exclude-pattern>./test/*</exclude-pattern>
</rule>
</ruleset>