-
Notifications
You must be signed in to change notification settings - Fork 14
/
phpcs.xml.dist
99 lines (76 loc) · 3.53 KB
/
phpcs.xml.dist
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<?xml version="1.0"?>
<ruleset name="Pronamic Pay">
<file>.</file>
<exclude-pattern type="relative">^index.php</exclude-pattern>
<exclude-pattern type="relative">^.idea/*</exclude-pattern>
<exclude-pattern type="relative">^build/*</exclude-pattern>
<exclude-pattern type="relative">^deploy/*</exclude-pattern>
<exclude-pattern type="relative">^documentation/*</exclude-pattern>
<exclude-pattern type="relative">^node_modules/*</exclude-pattern>
<exclude-pattern type="relative">^packages/*</exclude-pattern>
<exclude-pattern type="relative">^src/phpcompatibility/*</exclude-pattern>
<exclude-pattern type="relative">^src/wpcs/*</exclude-pattern>
<exclude-pattern type="relative">^vendor/*</exclude-pattern>
<exclude-pattern type="relative">^wp-content/*</exclude-pattern>
<exclude-pattern type="relative">^wordpress/*</exclude-pattern>
<rule ref="PronamicWP">
<exclude name="Squiz.Commenting.FileComment.Missing">src/readme-txt/changelog.php</exclude>
<exclude name="WordPress.DB.DirectDatabaseQuery.DirectQuery" />
<exclude name="WordPress.DB.DirectDatabaseQuery.NoCaching" />
<exclude name="WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents" />
<exclude name="WordPress.WP.GlobalVariablesOverride.OverrideProhibited" />
<exclude name="WordPressVIPMinimum.Performance.FetchingRemoteData.FileGetContentsUnknown" />
</rule>
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="pronamic-ideal" />
</property>
</properties>
</rule>
<rule ref="phpcs-text-domain-fixer.xml" />
<rule ref="Generic.Files.EndFileNewline.NotFound">
<exclude-pattern>src/readme-md/installation.php</exclude-pattern>
</rule>
<rule ref="Generic.WhiteSpace.ScopeIndent.Incorrect">
<exclude-pattern>admin/tab-*.php</exclude-pattern>
</rule>
<rule ref="Internal.NoCodeFound">
<exclude-pattern>src/*.php</exclude-pattern>
</rule>
<rule ref="PHPCompatibility.FunctionDeclarations.NewClosure.ClassRefFound">
<exclude-pattern>src/i18n-make-pot.php</exclude-pattern>
</rule>
<rule ref="PHPCompatibility.FunctionDeclarations.NewClosure.ThisFound">
<exclude-pattern>src/i18n-make-pot.php</exclude-pattern>
</rule>
<rule ref="PHPCompatibility.FunctionDeclarations.NewClosure.ThisFoundOutsideClass">
<exclude-pattern>src/i18n-make-pot.php</exclude-pattern>
</rule>
<rule ref="Squiz.ControlStructures.ControlSignature.NewlineAfterOpenBrace">
<exclude-pattern>admin/*.php</exclude-pattern>
</rule>
<rule ref="Squiz.Commenting.FileComment.Missing">
<exclude-pattern>src/readme-txt/description-long.php</exclude-pattern>
</rule>
<rule ref="Squiz.PHP.EmbeddedPhp.ContentBeforeOpen">
<exclude-pattern>src/readme-md/extensions.php</exclude-pattern>
<exclude-pattern>src/readme-md/gateways.php</exclude-pattern>
</rule>
<rule ref="Squiz.PHP.EmbeddedPhp.ContentAfterEnd">
<exclude-pattern>src/readme-md/extensions.php</exclude-pattern>
<exclude-pattern>src/readme-md/gateways.php</exclude-pattern>
</rule>
<rule ref="WordPress.DB.DirectDatabaseQuery.SchemaChange">
<exclude-pattern>uninstall.php</exclude-pattern>
</rule>
<rule ref="WordPress.PHP.DiscouragedPHPFunctions.system_calls_passthru">
<exclude-pattern>src/dev.php</exclude-pattern>
</rule>
<rule ref="WordPress.PHP.DiscouragedPHPFunctions.serialize_serialize">
<exclude-pattern>includes/updates/update-2.0.0.php</exclude-pattern>
</rule>
<rule ref="WordPress.Security.EscapeOutput.OutputNotEscaped">
<exclude-pattern>src/*.php</exclude-pattern>
</rule>
</ruleset>