-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
phpcs.xml.dist
49 lines (39 loc) · 1.72 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
<?xml version="1.0"?>
<ruleset name="WP Libs - Rules">
<!-- See https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-Ruleset -->
<description>Ruleset for WordPress Libs</description>
<version>4.3.0</version>
<!-- Include when not specified -->
<file>./src</file>
<!-- Show file path based on project root. -->
<arg name="basepath" value="." />
<!-- Cache between runs -->
<arg name="cache" value="./.phpcs.cache" />
<!-- @see https://github.com/WordPress/WordPress-Coding-Standards/wiki/Customizable-sniff-properties#various-sniffs-set-the-minimum-supported-wp-version -->
<config name="minimum_wp_version" value="6.3" />
<!-- @see https://github.com/PHPCompatibility/PHPCompatibilityWP#how-to-use -->
<config name="testVersion" value="8.2-" />
<rule ref="LipePlugin">
<exclude name="Generic.PHP.DisallowShortOpenTag.EchoFound" />
<exclude name="LipePlugin.TypeHints.PreventStrictTypes" />
</rule>
<!-- Allow the "lipe" or "Lipe" prefix for hooks, namespaces and functions -->
<!-- https://github.com/WordPress/WordPress-Coding-Standards/wiki/Customizable-sniff-properties#wordpressnamingconventionsprefixallglobals-prefix-everything-in-the-global-namespace -->
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<properties>
<property name="prefixes" type="array">
<element value="Lipe\Lib" />
<element value="lipe/lib" />
</property>
</properties>
</rule>
<!-- Translations -->
<rule ref="WordPress.WP.I18n">
<properties>
<!-- https://github.com/WordPress/WordPress-Coding-Standards/wiki/Customizable-sniff-properties#wordpresswpi18n-setting-your-text-domain -->
<property name="text_domain" type="array">
<element value="lipe" />
</property>
</properties>
</rule>
</ruleset>