-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.ruleset.xml
executable file
·61 lines (47 loc) · 2.4 KB
/
phpcs.ruleset.xml
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
<?xml version="1.0"?>
<ruleset name="WordPoints-Dev-Lib">
<description>Sniffs for the coding standards of the WordPoints plugin</description>
<rule ref="phpcs/WordPoints/ruleset.xml">
<exclude name="WordPress.Security.EscapeOutput" />
<exclude name="WordPress.Security.NonceVerification" />
<exclude name="WordPress.DB.PreparedSQL" />
<exclude name="WordPress.DB.DirectDatabaseQuery.NoCaching" />
<exclude name="WordPoints.PHPUnit.MissingCovers" />
<exclude name="WordPress.PHP.DiscouragedPHPFunctions.system_calls_system" />
<exclude name="WordPress.PHP.DiscouragedPHPFunctions.system_calls_shell_exec" />
<exclude name="WordPress.WP.AlternativeFunctions.file_system_read_fopen" />
<exclude name="WordPress.WP.AlternativeFunctions.file_system_read_fread" />
<exclude name="WordPress.WP.AlternativeFunctions.file_system_read_fclose" />
<exclude name="WordPress.WP.AlternativeFunctions.file_system_read_fwrite" />
<exclude name="WordPress.PHP.DevelopmentFunctions.error_log_trigger_error" />
</rule>
<rule ref="Generic.Files.OneClassPerFile.MultipleFound">
<exclude-pattern>/i18n/*</exclude-pattern>
</rule>
<rule ref="WordPress.NamingConventions.ValidVariableName">
<exclude-pattern>/wpcept/*</exclude-pattern>
<exclude-pattern>/phpcs/*</exclude-pattern>
</rule>
<rule ref="WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid">
<exclude-pattern>/wpcept/*</exclude-pattern>
</rule>
<rule ref="PSR2.Methods.MethodDeclaration.Underscore">
<exclude-pattern>/wpcept/*</exclude-pattern>
</rule>
<rule ref="WordPress.Files.FileName.NotHyphenatedLowercase">
<exclude-pattern>/wpcept/*</exclude-pattern>
<exclude-pattern>/phpcs/*</exclude-pattern>
</rule>
<rule ref="Generic.CodeAnalysis.UselessOverridingMethod.Found">
<exclude-pattern>/phpunit/classes/mock/*</exclude-pattern>
<exclude-pattern>/phpunit/classes/testcase.php</exclude-pattern>
</rule>
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<exclude-pattern>/wpcept/scaffold/_support/AcceptanceTester.php</exclude-pattern>
<exclude-pattern>/phpunit/test.php</exclude-pattern>
</rule>
<!-- These are copied from PHPUnit Mock Objects. -->
<exclude-pattern>phpunit/classes/mock/object/builder/invocation/mocker.php</exclude-pattern>
<exclude-pattern>/phpunit/classes/mock/object/matcher/parameters/consecutive.php</exclude-pattern>
<exclude-pattern>/phpcs/WordPoints/Tests/*</exclude-pattern>
</ruleset>