-
Notifications
You must be signed in to change notification settings - Fork 2
/
phpcs.xml
34 lines (32 loc) · 1.16 KB
/
phpcs.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
<?xml version="1.0"?>
<ruleset name="MerPress">
<file>build</file>
<file>merpress.php</file>
<arg name="parallel" value="80"/>
<arg name="colors"/>
<arg name="extensions" value="php"/>
<arg value="nps"/>
<rule ref="WordPress"/>
<!-- <rule ref="PHPCompatibility"/>
<rule ref="PHPCompatibilityWP"/> -->
<rule ref="Universal.Arrays.DisallowShortArraySyntax">
<exclude name="Universal.Arrays.DisallowShortArraySyntax.Found"/>
</rule>
<rule ref="Squiz.Commenting.FileComment.Missing">
<exclude-pattern>build</exclude-pattern>
</rule>
<rule ref="WordPress.Files.FileName.NotHyphenatedLowercase">
<exclude-pattern>build</exclude-pattern>
</rule>
<!-- enable the RequireStrictTypesSniff -->
<rule ref="Generic.PHP.RequireStrictTypes">
<type>error</type>
</rule>
<!-- temp PHP8 bugs: TODO: try removing and seeing if `./vendor/bin/phpcs build/*` works -->
<rule ref="WordPress.WP.I18n">
<exclude-pattern>build</exclude-pattern>
</rule>
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<exclude-pattern>build</exclude-pattern>
</rule>
</ruleset>