-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml
More file actions
27 lines (21 loc) · 1.08 KB
/
phpcs.xml
File metadata and controls
27 lines (21 loc) · 1.08 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
<?xml version="1.0"?>
<ruleset name="graze/standards">
<description>The graze PHP coding standard as defined in graze/standards.</description>
<!-- Include all sniffs in the Graze standard. -->
<rule ref="vendor/graze/standards/PHP/CodeSniffer/Graze/ruleset.xml" />
<rule ref="Squiz.Commenting.FunctionComment">
<exclude name="Squiz.Commenting.FunctionComment.InvalidReturnVoid" />
</rule>
<rule ref="Squiz.Commenting.FunctionComment">
<!-- excluded because it can't be used for both php 5 and 7 -->
<exclude name="Squiz.Commenting.FunctionComment.ScalarTypeHintMissing" />
</rule>
<rule ref="Squiz.Commenting.FunctionComment.TypeHintMissing">
<!-- PHP 7.4 has no `mixed` type; tests legitimately use mixed-typed dataProvider params -->
<exclude-pattern>*/tests/*</exclude-pattern>
</rule>
<rule ref="Squiz.NamingConventions.ValidVariableName.NotCamelCaps">
<!-- excluded because it's handling raw database query results -->
<exclude-pattern>*/src/Extractor.php</exclude-pattern>
</rule>
</ruleset>