-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
62 lines (54 loc) · 3.05 KB
/
Copy pathphpcs.xml.dist
File metadata and controls
62 lines (54 loc) · 3.05 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
<?xml version="1.0"?>
<ruleset name="SymPress Nginx Cache Plugin">
<description>
SymPress coding standard audit for the nginx cache plugin.
</description>
<arg name="colors" />
<arg value="sp" />
<arg name="basepath" value="." />
<config name="testVersion" value="8.5-" />
<config name="text_domain" value="nginx-cache" />
<file>nginx-cache.php</file>
<file>src</file>
<exclude-pattern>vendor/*</exclude-pattern>
<exclude-pattern>.phpunit.cache/*</exclude-pattern>
<rule ref="SymPress-WordPress">
<exclude name="PSR12.Files.FileHeader.IncorrectOrder" />
<exclude name="SlevomatCodingStandard.Classes.ForbiddenPublicProperty.ForbiddenPublicProperty" />
<exclude name="SlevomatCodingStandard.Functions.UnusedParameter.UnusedParameter" />
<exclude name="SlevomatCodingStandard.Operators.RequireOnlyStandaloneIncrementAndDecrementOperators.PreIncrementOperatorNotUsedStandalone" />
<exclude name="SlevomatCodingStandard.Variables.DisallowSuperGlobalVariable.DisallowedSuperGlobalVariable" />
<exclude name="SymPress.Complexity.NestingLevel.High" />
<exclude name="SymPress.ControlStructures.DisallowElse.ElseFound" />
<exclude name="SymPress.Files.LineLength.TooLong" />
<exclude name="SymPress.Functions.FunctionLength.TooLong" />
<exclude name="SymPress.NamingConventions.ElementNameMinimalLength.TooShort" />
<exclude name="SymPress.Variables.RedundantAssignment.Found" />
<exclude name="WordPress.PHP.NoSilencedErrors.Discouraged" />
<exclude name="WordPress.Security.EscapeOutput.OutputNotEscaped" />
<exclude name="WordPress.Security.NonceVerification.Recommended" />
<exclude name="WordPress.Security.ValidatedSanitizedInput.InputNotSanitized" />
<exclude name="WordPress.Security.ValidatedSanitizedInput.MissingUnslash" />
<exclude name="WordPress.WP.AlternativeFunctions.file_system_operations_fclose" />
<exclude name="WordPress.WP.AlternativeFunctions.file_system_operations_fopen" />
<exclude name="WordPress.WP.AlternativeFunctions.file_system_operations_is_writable" />
<exclude name="WordPress.WP.AlternativeFunctions.strip_tags_strip_tags" />
<exclude name="WordPress.WP.I18n.MissingTranslatorsComment" />
<exclude name="WordPress.WP.I18n.NonSingularStringLiteralDomain" />
<exclude name="WordPressVIPMinimum.Functions.StripTags.StripTagsOneParameter" />
</rule>
<rule ref="SymPress.Classes.ClassLength.TooLong">
<exclude-pattern>src/Admin/SettingsPage.php</exclude-pattern>
<exclude-pattern>src/Settings/WordPressCacheSettings.php</exclude-pattern>
</rule>
<rule ref="SymPress.Files.FileLength.TooLong">
<exclude-pattern>src/Admin/SettingsPage.php</exclude-pattern>
</rule>
<rule ref="SymPress.Namespaces.Psr4">
<properties>
<property name="psr4" type="array">
<element key="SymPress\NginxCache" value="src" />
</property>
</properties>
</rule>
</ruleset>