Repository navigation
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
52 lines (44 loc) · 1.88 KB
/
Copy pathphpcs.xml.dist
File metadata and controls
52 lines (44 loc) · 1.88 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
<?xml version="1.0"?>
<ruleset name="LW Scan Coding Standards">
<description>PHP CodeSniffer ruleset for LW Scan plugin.</description>
<file>.</file>
<exclude-pattern>/vendor/*</exclude-pattern>
<exclude-pattern>/node_modules/*</exclude-pattern>
<!-- React admin: sources are linted by wp-scripts (ESLint/Prettier), build/ is generated. -->
<exclude-pattern>/src/*</exclude-pattern>
<exclude-pattern>/build/*</exclude-pattern>
<exclude-pattern>/tests/*</exclude-pattern>
<exclude-pattern>/assets/*</exclude-pattern>
<exclude-pattern>/bin/*</exclude-pattern>
<exclude-pattern>/stubs/*</exclude-pattern>
<arg value="ps"/>
<arg name="colors"/>
<rule ref="WordPress">
<exclude name="Universal.Arrays.DisallowShortArraySyntax"/>
<exclude name="Universal.NamingConventions.NoReservedKeywordParameterNames"/>
<exclude name="Squiz.PHP.CommentedOutCode"/>
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase"/>
<exclude name="WordPress.Files.FileName.InvalidClassFileName"/>
<exclude name="Squiz.Commenting.FunctionComment.Missing"/>
<exclude name="Generic.Commenting.DocComment.MissingShort"/>
</rule>
<rule ref="PHPCompatibilityWP"/>
<config name="testVersion" value="8.0-"/>
<config name="minimum_wp_version" value="6.6"/>
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="lw-scan"/>
</property>
</properties>
</rule>
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<properties>
<property name="prefixes" type="array">
<element value="lw_scan"/>
<element value="lw_plugins"/>
<element value="LightweightPlugins\Scan"/>
</property>
</properties>
</rule>
</ruleset>