-
Notifications
You must be signed in to change notification settings - Fork 1
/
phpcs.xml.dist
36 lines (32 loc) · 1.38 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
<?xml version="1.0"?>
<ruleset name="composer-deployer">
<description>Coding Standard for composer-deployer</description>
<file>.</file>
<rule ref="Required">
<exclude name="PSR1.Files.SideEffects.FoundWithSymbols"/>
<exclude name="WordPress.Security.EscapeOutput.ExceptionNotEscaped"/>
</rule>
<!-- The minimum supported WordPress version for all sniffs which use it. -->
<config name="minimum_supported_wp_version" value="6.3"/>
<!-- The minimum PHP requirement. -->
<config name="testVersion" value="7.4-"/>
<rule ref="WordPress.Files.FileName.NotHyphenatedLowercase">
<exclude-pattern>/src/Plugin\.php</exclude-pattern>
<exclude-pattern>/res/deploy\.tpl\.php</exclude-pattern>
</rule>
<rule ref="WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase">
<exclude-pattern>/src/Plugin\.php</exclude-pattern>
</rule>
<rule ref="WordPress.NamingConventions.ValidVariableName.PropertyNotSnakeCase">
<exclude-pattern>/src/Plugin\.php</exclude-pattern>
</rule>
<rule ref="WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase">
<exclude-pattern>/src/Plugin\.php</exclude-pattern>
</rule>
<rule ref="Squiz.Commenting.FunctionCommentThrowTag.Missing">
<exclude-pattern>/src/Plugin\.php</exclude-pattern>
</rule>
<rule ref="WordPress.WP.CapitalPDangit.MisspelledInText">
<exclude-pattern>/res/deploy\.tpl\.php</exclude-pattern>
</rule>
</ruleset>