-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
68 lines (61 loc) · 2.9 KB
/
phpcs.xml
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd"
name="Resque">
<!-- Default files to scan if none specified -->
<file>src</file>
<!-- Force exclusion of other files for the benefit of IDEs. -->
<exclude-pattern>bin/</exclude-pattern>
<exclude-pattern>demo/</exclude-pattern>
<exclude-pattern>extras/</exclude-pattern>
<exclude-pattern>test/</exclude-pattern>
<exclude-pattern>vendor/</exclude-pattern>
<!-- Basic adherance to PSR-12 (extends PSR-2, implies PSR-1). -->
<rule ref="PSR12"/>
<!-- Additional code checks. -->
<rule ref="Generic.Arrays.ArrayIndent"/>
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
<rule ref="Generic.Classes.DuplicateClassName"/>
<rule ref="Generic.CodeAnalysis"/>
<rule ref="Generic.ControlStructures"/>
<rule ref="Generic.PHP.DeprecatedFunctions"/>
<rule ref="Generic.PHP.DiscourageGoto"/>
<rule ref="Generic.PHP.ForbiddenFunctions"/>
<rule ref="Generic.Strings"/>
<!-- Customizations for certain sniffs. -->
<rule ref="Generic.Strings.UnnecessaryStringConcat">
<properties>
<property name="allowMultiline" value="true"/>
</properties>
</rule>
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace">
<properties>
<property name="ignoreBlankLines" value="false"/>
</properties>
</rule>
<!-- Security analysis. -->
<rule ref="./vendor/pheromone/phpcs-security-audit/Security/ruleset.xml">
<exclude name="PHPCS_SecurityAudit.BadFunctions.CallbackFunctions.WarnFringestuff"/>
</rule>
<!-- Documentation comment checks. -->
<rule ref="Generic.Commenting">
<exclude name="Generic.Commenting.DocComment.ContentAfterOpen"/>
<exclude name="Generic.Commenting.DocComment.ContentBeforeClose"/>
<exclude name="Generic.Commenting.DocComment.MissingShort"/>
<exclude name="Generic.Commenting.DocComment.NonParamGroup"/>
<exclude name="Generic.Commenting.DocComment.TagValueIndent"/>
</rule>
<rule ref="PEAR.Commenting">
<exclude name="PEAR.Commenting.ClassComment.MissingAuthorTag"/>
<exclude name="PEAR.Commenting.ClassComment.MissingCategoryTag"/>
<exclude name="PEAR.Commenting.ClassComment.MissingLicenseTag"/>
<exclude name="PEAR.Commenting.ClassComment.MissingLinkTag"/>
<exclude name="PEAR.Commenting.ClassComment.MissingPackageTag"/>
<exclude name="PEAR.Commenting.FileComment"/>
<exclude name="PEAR.Commenting.FunctionComment.ParamCommentAlignment"/>
<exclude name="PEAR.Commenting.FunctionComment.SpacingAfterParamName"/>
<exclude name="PEAR.Commenting.FunctionComment.SpacingAfterParamType"/>
</rule>
<!-- Check for unwanted guff. -->
<rule ref="Generic.VersionControl"/>
</ruleset>