-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml
More file actions
47 lines (40 loc) · 1.83 KB
/
phpcs.xml
File metadata and controls
47 lines (40 loc) · 1.83 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
37
38
39
40
41
42
43
44
45
46
47
<?xml version="1.0"?>
<ruleset name="Framework">
<description>Framework coding standards config.</description>
<file>src/</file>
<arg name="extensions" value="php,inc" />
<arg name="colors" />
<exclude-pattern type="relative">*\.tpl\.php$</exclude-pattern>
<autoload>./tests/bootstrap.php</autoload>
<rule ref="Generic.PHP.DisallowShortOpenTag" />
<rule ref="Generic.WhiteSpace.DisallowSpaceIndent" />
<rule ref="Generic.NamingConventions.UpperCaseConstantName" />
<rule ref="Generic.CodeAnalysis.UnusedFunctionParameter" />
<rule ref="Generic.Commenting.Todo" />
<rule ref="SlevomatCodingStandard.TypeHints.LongTypeHints" />
<rule ref="Generic.PHP.ForbiddenFunctions">
<properties>
<property name="forbiddenFunctions" type="array">
<element key="array" value="[]" />
<element key="echo" value="print" />
<element key="delete" value="unset" />
<element key="create_function" value="function" />
</property>
</properties>
</rule>
<rule ref="Squiz.Strings.DoubleQuoteUsage.ContainsVar" />
<rule ref="Squiz.Commenting.FunctionComment">
<properties>
<requireParamType>true</requireParamType>
<requireParamName>true</requireParamName>
<property name="skipIfInheritdoc" value="true" />
</properties>
<exclude name="Squiz.Commenting.FunctionComment.ParamCommentNotCapital" />
<exclude name="Squiz.Commenting.FunctionComment.SpacingAfterParamType" />
<exclude name="Squiz.Commenting.FunctionComment.ParamCommentFullStop" />
<exclude name="Squiz.Commenting.FunctionComment.SpacingAfterParamName" />
<!-- Allow short scalar type names (int, bool) in docblocks when using PHP 7/8 typed signatures -->
<exclude name="Squiz.Commenting.FunctionComment.IncorrectParamVarName" />
<exclude name="Squiz.Commenting.FunctionComment.InvalidReturn" />
</rule>
</ruleset>