-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathphpcs.xml
More file actions
26 lines (23 loc) · 1.07 KB
/
phpcs.xml
File metadata and controls
26 lines (23 loc) · 1.07 KB
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 name="PHPCodeSniffer Beans Config">
<file>src</file>
<rule ref="PEAR.NamingConventions.ValidClassName"/>
<!-- <rule ref="PEAR.NamingConventions.ValidFunctionName"/>-->
<rule ref="PEAR.NamingConventions.ValidVariableName"/>
<!-- <rule ref="WordPress.NamingConventions.ValidFunctionName"/>-->
<!-- <rule ref="WordPress.NamingConventions.ValidHookName"/>-->
<!-- <rule ref="WordPress.NamingConventions.ValidVariableName"/>-->
<rule ref="PSR12">
<!-- <exclude name="PSR1.Methods.CamelCapsMethodName"/>-->
<exclude name="PSR1.Files.SideEffects"/>
<exclude name="PSR2.Classes.PropertyDeclaration"/>
<exclude name="PSR12.Properties.ConstantVisibility.NotFound"/>
<exclude name="Squiz.Classes.ValidClassName"/>
</rule>
<!--
This file extends from a main wordpress class and they don't use the camelcase convention for method names.
-->
<rule ref="PSR1.Methods.CamelCapsMethodName.NotCamelCaps">
<exclude-pattern>src/server/Api.php</exclude-pattern>
</rule>
</ruleset>