-
Notifications
You must be signed in to change notification settings - Fork 11
/
.phpcs.xml.dist
41 lines (35 loc) · 1.37 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
<?xml version="1.0"?>
<ruleset name="WordPress Coding Standards for Syntax-highlighting Code Block">
<rule ref="WordPress-Core">
<exclude name="Universal.Arrays.DisallowShortArraySyntax.Found" />
</rule>
<rule ref="WordPress-Docs">
<!--
Excluded since don't yet support multi-line PhpDoc: https://github.com/squizlabs/PHP_CodeSniffer/issues/2591
Nevertheless, they are redundant with PHPStan anyway.
-->
<exclude name="Squiz.Commenting.FunctionComment.MissingParamName" />
<exclude name="Squiz.Commenting.FunctionComment.MissingParamTag" />
</rule>
<rule ref="WordPress-Extra" />
<config name="minimum_wp_version" value="6.3"/>
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" value="syntax-highlighting-code-block" />
</properties>
</rule>
<rule ref="Generic.Arrays.DisallowLongArraySyntax.Found" />
<!-- Include sniffs for PHP cross-version compatibility. -->
<config name="testVersion" value="7.4-"/>
<rule ref="PHPCompatibility"/>
<arg value="s"/>
<arg name="extensions" value="php"/>
<file>syntax-highlighting-code-block.php</file>
<file>uninstall.php</file>
<file>inc/</file>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/dist/*</exclude-pattern>
<exclude-pattern>*/bin/*</exclude-pattern>
<exclude-pattern>phpstan-baseline.php</exclude-pattern>
</ruleset>