|
7 | 7 | except in this file, so it can contain information for
|
8 | 8 | developers who may change this file in the future.
|
9 | 9 | -->
|
| 10 | + <config name="installed_paths" value="vendor/wp-coding-standards/wpcs,vendor/phpcompatibility/php-compatibility"/> |
| 11 | + |
10 | 12 | <description>A custom coding standard</description>
|
11 | 13 |
|
12 | 14 | <rule ref="PSR12">
|
13 | 15 | <exclude name="Generic.Files.LineLength.TooLong"/>
|
| 16 | + <exclude name="PSR1.Methods.CamelCapsMethodName.NotCamelCaps"/> |
14 | 17 | </rule>
|
15 | 18 | <rule ref="Generic.CodeAnalysis.EmptyStatement"/>
|
16 | 19 | <rule ref="Generic.Files.EndFileNewline"/>
|
|
32 | 35 | <rule ref="Generic.Formatting.DisallowMultipleStatements"/>
|
33 | 36 | <rule ref="Generic.Formatting.NoSpaceAfterCast"/>
|
34 | 37 | <rule ref="Generic.Functions.CallTimePassByReference"/>
|
35 |
| - <rule ref="Generic.Metrics.CyclomaticComplexity"/> |
| 38 | + <rule ref="Generic.Metrics.CyclomaticComplexity"> |
| 39 | + <properties> |
| 40 | + <property name="complexity" value="18"/> |
| 41 | + <property name="absoluteComplexity" value="19"/> |
| 42 | + </properties> |
| 43 | + </rule> |
36 | 44 | <rule ref="Generic.Metrics.NestingLevel"/>
|
37 | 45 | <rule ref="Generic.NamingConventions.ConstructorName"/>
|
38 | 46 | <rule ref="Generic.NamingConventions.UpperCaseConstantName"/>
|
39 |
| - <rule ref="Generic.NamingConventions.CamelCapsFunctionName"/> |
| 47 | + <!-- <rule ref="Generic.NamingConventions.CamelCapsFunctionName"/>--> |
40 | 48 | <rule ref="Generic.PHP.DeprecatedFunctions"/>
|
41 | 49 | <rule ref="Generic.PHP.DisallowShortOpenTag"/>
|
42 | 50 | <rule ref="Generic.PHP.LowerCaseConstant"/>
|
43 | 51 | <rule ref="Generic.WhiteSpace.DisallowTabIndent"/>
|
44 | 52 | <rule ref="Generic.WhiteSpace.ScopeIndent"/>
|
45 |
| - <rule ref="Generic.PHP.NoSilencedErrors"/> |
| 53 | + <!-- <rule ref="Generic.PHP.NoSilencedErrors"/>--> |
46 | 54 | <rule ref="Generic.PHP.ForbiddenFunctions"/>
|
47 | 55 | <rule ref="MySource.PHP.EvalObjectFactory"/>
|
48 | 56 | <rule ref="Squiz.WhiteSpace.OperatorSpacing"/>
|
|
58 | 66 | <rule ref="Squiz.PHP.Eval"/>
|
59 | 67 | <rule ref="Zend.Files.ClosingTag"/>
|
60 | 68 | <rule ref="Squiz.PHP.NonExecutableCode"/>
|
61 |
| - <rule ref="Zend.NamingConventions.ValidVariableName"> |
62 |
| - <exclude name="Zend.NamingConventions.ValidVariableName.PrivateNoUnderscore"/> |
63 |
| - </rule> |
| 69 | + <!-- <rule ref="Zend.NamingConventions.ValidVariableName">--> |
| 70 | + <!-- <exclude name="Zend.NamingConventions.ValidVariableName.PrivateNoUnderscore"/>--> |
| 71 | + <!-- </rule>--> |
64 | 72 | <rule ref="Squiz.Classes.ValidClassName">
|
65 | 73 | <exclude-pattern>./visualcomposer/Requirements.php</exclude-pattern>
|
66 | 74 | <exclude-pattern>./visualcomposer/Env.php</exclude-pattern>
|
|
81 | 89 | <exclude-pattern type="relative">tests/*</exclude-pattern>
|
82 | 90 | <exclude-pattern type="relative">vendor/*</exclude-pattern>
|
83 | 91 |
|
| 92 | + <!-- Show sniff codes in all reports --> |
| 93 | + <arg value="s"/> |
| 94 | + <!-- ignore all phpcs annotations --> |
| 95 | + <arg value="-ignore-annotations"/> |
| 96 | + <!-- Up the Memory limit for large plugins --> |
| 97 | + <ini name="memory_limit" value="512M"/> |
84 | 98 | <arg name="extensions" value="php"/>
|
85 | 99 | </ruleset>
|
0 commit comments