-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathphpcs.xml
More file actions
36 lines (30 loc) · 1.6 KB
/
Copy pathphpcs.xml
File metadata and controls
36 lines (30 loc) · 1.6 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
27
28
29
30
31
32
33
34
35
36
<?xml version="1.0"?>
<ruleset name="BambooHR API PHP Custom Standard">
<description>Custom ruleset for BambooHR API PHP - Modified to allow snake_case variables</description>
<!-- Include the BambooHR standard -->
<rule ref="BambooHR">
<!-- Exclude variable naming rules to allow both snake_case and camelCase -->
<exclude name="BambooHR.Variables.CamelCapsVariable"/>
<exclude name="BambooHR.Variables.CamelCapsVariable.Found"/>
<exclude name="BambooHR.Variables.CamelCapsVariable.NotCamelCaps"/>
<exclude name="PSR1.Methods.CamelCapsMethodName"/>
<exclude name="BambooHR.Functions.CamelCapsFunctionName"/>
<exclude name="BambooHR.Functions.CamelCapsFunctionName.ScopeNotCamelCaps"/>
<exclude name="Squiz.NamingConventions.ValidVariableName"/>
<exclude name="Squiz.NamingConventions.ValidVariableName.NotCamelCaps"/>
<exclude name="Squiz.NamingConventions.ValidVariableName.MemberNotCamelCaps"/>
<exclude name="PEAR.NamingConventions.ValidVariableName"/>
<!-- Exclude docblock spacing rules -->
<exclude name="PEAR.Commenting.FunctionComment.SpacingAfterParamName"/>
<!-- Exclude function nesting level rule -->
<exclude name="Generic.Metrics.NestingLevel"/>
</rule>
<!-- Paths to check -->
<file>lib</file>
<file>test</file>
<!-- Exclude vendor directory -->
<exclude-pattern>*/vendor/*</exclude-pattern>
<!-- Exclude generated code -->
<exclude-pattern>*/lib/Model/*</exclude-pattern>
<exclude-pattern>*/lib/Api/*</exclude-pattern>
</ruleset>