-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathphpcs-tests.xml.dist
More file actions
58 lines (47 loc) · 1.77 KB
/
Copy pathphpcs-tests.xml.dist
File metadata and controls
58 lines (47 loc) · 1.77 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
53
54
55
56
57
58
<?xml version="1.0"?>
<ruleset name="WP Pinch Tests">
<description>Relaxed PHPCS rules for test files (tests/).</description>
<file>./tests/</file>
<arg name="extensions" value="php"/>
<arg value="ps"/>
<arg name="colors"/>
<arg name="parallel" value="8"/>
<!-- WordPress-Core only: no Extra/Security so test code is not forced to production rules -->
<rule ref="WordPress-Core"/>
<!-- Relax naming: test methods and classes often don't use wp_pinch prefix -->
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<severity>0</severity>
</rule>
<!-- Unused parameters common in PHPUnit data providers and callbacks -->
<rule ref="Generic.CodeAnalysis.UnusedFunctionParameter">
<severity>0</severity>
</rule>
<!-- Array formatting: relaxed in tests (many inline arrays in assertions) -->
<rule ref="WordPress.Arrays.ArrayDeclarationSpacing.AssociativeArrayFound">
<severity>0</severity>
</rule>
<rule ref="WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned">
<severity>0</severity>
</rule>
<rule ref="WordPress.WP.CapitalPDangit.MisspelledInText">
<severity>0</severity>
</rule>
<!-- Multi-line function call formatting: relaxed in tests -->
<rule ref="PEAR.Functions.FunctionCallSignature">
<severity>0</severity>
</rule>
<!-- Assignment alignment: relaxed in tests -->
<rule ref="Generic.Formatting.MultipleStatementAlignment">
<severity>0</severity>
</rule>
<!-- Quote style: relaxed in tests -->
<rule ref="Squiz.Strings.DoubleQuoteUsage.NotRequired">
<severity>0</severity>
</rule>
<!-- Test files are test-*.php (WordPress-style) -->
<rule ref="WordPress.Files.FileName.InvalidClassFileName">
<severity>0</severity>
</rule>
<exclude-pattern>/vendor/*</exclude-pattern>
<exclude-pattern>/build/*</exclude-pattern>
</ruleset>