-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
69 lines (62 loc) · 3.51 KB
/
Copy pathphpcs.xml.dist
File metadata and controls
69 lines (62 loc) · 3.51 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?xml version="1.0"?>
<ruleset name="Profiler MU Plugin">
<description>
WordPress and security-focused coding standard audit for the profiler MU plugin.
Auto-formatting stays in PHP CS Fixer; PHPCS enforces the SymPress standard.
</description>
<arg name="colors"/>
<arg value="sp"/>
<arg name="basepath" value="."/>
<config name="testVersion" value="8.5-"/>
<config name="text_domain" value="profiler"/>
<file>profiler.php</file>
<file>src</file>
<exclude-pattern>vendor/*</exclude-pattern>
<exclude-pattern>.phpunit.cache/*</exclude-pattern>
<exclude-pattern>.hooktest.php</exclude-pattern>
<!--
PHPCS does not reliably parse PHP 8.5 property hooks yet.
These small value objects remain covered by PHP CS Fixer, PHPStan and PHPUnit.
-->
<exclude-pattern>src/Value/ProfileRecord.php</exclude-pattern>
<exclude-pattern>src/Value/ProfileSearchCriteria.php</exclude-pattern>
<exclude-pattern>src/Value/ToolbarBlock.php</exclude-pattern>
<exclude-pattern>src/Collector/CollectorPanel.php</exclude-pattern>
<rule ref="SymPress-WordPress">
<exclude name="SymPress.Classes.AccessorNaming"/>
<exclude name="SymPress.Files.LineLength"/>
<exclude name="SymPress.Complexity.NestingLevel.High"/>
<exclude name="Generic.Metrics.CyclomaticComplexity"/>
<exclude name="SymPress.ControlStructures.DisallowElse"/>
<exclude name="WordPress.PHP.DevelopmentFunctions.error_log_trigger_error"/>
<exclude name="WordPress.PHP.DevelopmentFunctions.error_log_var_export"/>
<exclude name="WordPress.PHP.POSIXFunctions"/>
<exclude name="PSR1.Files.SideEffects.FoundWithSymbols"/>
<exclude name="Generic.PHP.ForbiddenFunctions.Found" />
<exclude name="SlevomatCodingStandard.Classes.ForbiddenPublicProperty.ForbiddenPublicProperty" />
<exclude name="SlevomatCodingStandard.ControlStructures.UselessIfConditionWithReturn.UselessIfCondition" />
<exclude name="SlevomatCodingStandard.Functions.UnusedParameter.UnusedParameter" />
<exclude name="SlevomatCodingStandard.Variables.DisallowSuperGlobalVariable.DisallowedSuperGlobalVariable" />
<exclude name="Squiz.PHP.GlobalKeyword.NotAllowed" />
<exclude name="SymPress.Classes.PropertyLimit.TooManyProperties" />
<exclude name="SymPress.Functions.FunctionLength.TooLong" />
<exclude name="SymPress.NamingConventions.ElementNameMinimalLength.TooShort" />
<exclude name="SymPress.Variables.RedundantAssignment.Found" />
<exclude name="WordPress.DB.PreparedSQL.InterpolatedNotPrepared" />
<exclude name="WordPress.PHP.DiscouragedPHPFunctions.serialize_serialize" />
<exclude name="WordPress.PHP.NoSilencedErrors.Discouraged" />
<exclude name="WordPress.Security.NonceVerification.Missing" />
<exclude name="WordPress.Security.NonceVerification.Recommended" />
<exclude name="WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents" />
<exclude name="WordPress.WP.AlternativeFunctions.file_system_operations_is_writable" />
<exclude name="WordPress.WP.AlternativeFunctions.json_encode_json_encode" />
<exclude name="WordPress.WP.AlternativeFunctions.parse_url_parse_url" />
</rule>
<rule ref="SymPress.Namespaces.Psr4">
<properties>
<property name="psr4" type="array">
<element key="SymPress\Profiler" value="src"/>
</property>
</properties>
</rule>
</ruleset>