-
Notifications
You must be signed in to change notification settings - Fork 1
/
phpcs.xml.dist
47 lines (36 loc) · 1.4 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
<?xml version="1.0"?>
<ruleset name="WordPress Pay MultiSafepay rules">
<file>.</file>
<exclude-pattern>tests/bootstrap.php</exclude-pattern>
<exclude-pattern>tests/wp-config.php</exclude-pattern>
<rule ref="Generic.CodeAnalysis.EmptyStatement.DetectedCatch">
<exclude-pattern>src/Gateway.php</exclude-pattern>
</rule>
<rule ref="PronamicWP">
<exclude name="Squiz.Commenting" />
<exclude name="WordPress.Files.FileName.InvalidClassFileName" />
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase" />
<exclude name="WordPress.VIP.RestrictedFunctions.wp_remote_get" />
</rule>
<rule ref="WordPress.DB.SlowDBQuery.slow_db_query_meta_key">
<exclude-pattern>src/Integration.php</exclude-pattern>
</rule>
<rule ref="WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents">
<exclude-pattern>tests/**/*</exclude-pattern>
</rule>
<rule ref="WordPress.WP.AlternativeFunctions.file_system_read_file_get_contents">
<exclude-pattern>tests/**/*</exclude-pattern>
</rule>
<rule ref="Squiz.PHP.CommentedOutCode.Found">
<exclude-pattern>tests/**/*</exclude-pattern>
</rule>
<rule ref="WordPress.NamingConventions.ValidVariableName">
<properties>
<property name="allowed_custom_properties" type="array">
<element value="documentElement" />
<element value="preserveWhiteSpace" />
<element value="formatOutput" />
</property>
</properties>
</rule>
</ruleset>