forked from infinum/eightshift-libs
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathphpcs.xml.dist
63 lines (49 loc) · 2.12 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
<?xml version="1.0"?>
<ruleset name="Eightshift Library">
<description>Eightshift Library uses extended WordPress coding standards with some minor corrections.</description>
<rule ref="Eightshift"/>
<exclude-pattern>*/tests/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/src/commands/templates/*</exclude-pattern>
<exclude-pattern>*/src/Build/BuildExample.php</exclude-pattern>
<exclude-pattern>*/bin/cli.php</exclude-pattern>
<!-- Additional arguments. -->
<arg value="sp"/>
<arg name="basepath" value="."/>
<arg name="parallel" value="8"/>
<arg name="extensions" value="php"/>
<file>.</file>
<exclude-pattern>/src/CompiledContainer\.php</exclude-pattern>
<rule ref="WordPress.PHP.DiscouragedPHPFunctions.system_calls_system">
<exclude-pattern>*/src/**/*Cli</exclude-pattern>
</rule>
<rule ref="WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents">
<exclude-pattern>*/src/**/*Cli</exclude-pattern>
</rule>
<rule ref="WordPress.PHP.DiscouragedPHPFunctions.system_calls_shell_exec">
<exclude-pattern>*/src/Db/*</exclude-pattern>
<exclude-pattern>*/src/Build/*</exclude-pattern>
<exclude-pattern>*/cliOutput/bin/Build.php</exclude-pattern>
<exclude-pattern>*/src/LintPhp/LintPhpCli.php</exclude-pattern>
</rule>
<rule ref="WordPress.WP.AlternativeFunctions.file_system_read_fopen">
<exclude-pattern>*/src/Cli/*</exclude-pattern>
</rule>
<rule ref="WordPress.WP.AlternativeFunctions.file_system_read_fwrite">
<exclude-pattern>*/src/Cli/*</exclude-pattern>
</rule>
<rule ref="WordPress.WP.AlternativeFunctions.file_system_read_fclose">
<exclude-pattern>*/src/Cli/*</exclude-pattern>
</rule>
<rule ref="WordPress.Security.EscapeOutput.OutputNotEscaped">
<exclude-pattern>*/src/**/*Cli.php</exclude-pattern>
<exclude-pattern>*/src/Cli/*</exclude-pattern>
</rule>
<rule ref="Generic.Files.LineLength">
<exclude name="Generic.Files.LineLength.TooLong"/>
</rule>
<rule ref="WordPress.WP.GlobalVariablesOverride">
<exclude name="WordPress.WP.GlobalVariablesOverride.Prohibited"/>
</rule>
</ruleset>