-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
22 lines (20 loc) · 1 KB
/
phpcs.xml.dist
File metadata and controls
22 lines (20 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?xml version="1.0"?>
<ruleset name="parallel-process">
<description>parallel-process coding standard (graze/standards plus a missing-mixed-type-hint suppression for PHP 8+).</description>
<!--
Reference the inner Graze ruleset directly (the outer
vendor/graze/standards/phpcs.xml has a relative path that doesn't
resolve when included from outside its own directory).
-->
<rule ref="./vendor/graze/standards/PHP/CodeSniffer/Graze/ruleset.xml"/>
<!--
Mirror graze/standards' own additions to Squiz.Commenting.FunctionComment,
then add our own: `mixed` is a PHP 8.0+ native type and we still support
PHP ^7.4 where adding `mixed` is a parse error, so exclude the
TypeHintMissing message that demands it on PHP 8+.
-->
<rule ref="Squiz.Commenting.FunctionComment">
<exclude name="Squiz.Commenting.FunctionComment.ScalarTypeHintMissing"/>
<exclude name="Squiz.Commenting.FunctionComment.TypeHintMissing"/>
</rule>
</ruleset>