-
Notifications
You must be signed in to change notification settings - Fork 3
/
phpcs.xml
34 lines (27 loc) · 1.31 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
27
28
29
30
31
32
33
34
<?xml version="1.0"?>
<ruleset name="WP Softcatala">
<description>WP Softcatala rules for PHP_CodeSniffer</description>
<file>classes/</file>
<exclude-pattern>tests/*</exclude-pattern>
<exclude-pattern>vendor/*</exclude-pattern>
<arg name="extensions" value="php" />
<arg value="nsp" />
<config name="testVersion" value="5.6-"/>
<rule ref="WordPress">
<config name="minimum_supported_wp_version" value="4.9"/>
<exclude name="WordPress.Files.FileName.InvalidClassFileName" />
<exclude name="Generic.WhiteSpace.ScopeIndent.IncorrectExact" />
<exclude name="Generic.WhiteSpace.ScopeIndent.Incorrect" />
<exclude name="Generic.Commenting.DocComment.MissingShort" />
<exclude name="PEAR.Functions.FunctionCallSignature.Indent" />
<exclude name="Generic.Functions.FunctionCallArgumentSpacing" />
</rule>
<rule ref="WordPress-Extra" />
<rule ref="Squiz.Commenting">
<exclude name="Squiz.Commenting.FileComment.Missing" />
<exclude name="Squiz.Commenting.VariableComment.Missing" />
<exclude name="Squiz.Commenting.FunctionComment.Missing" />
<exclude name="Squiz.Commenting.ClosingDeclarationComment.Incorrect" />
<exclude name="Squiz.Commenting.LongConditionClosingComment" />
</rule>
</ruleset>