-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml.dist
57 lines (47 loc) · 2.12 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
50
51
52
53
54
55
56
57
<?xml version="1.0"?>
<ruleset name="Go Live Update Urls - Rules.">
<!-- See https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-Ruleset -->-->
<description>Ruleset for the Go Live Update Urls plugin.</description>
<version>4.2.1</version>
<!-- Include when not specified -->
<file>./</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.2" />
<!-- @see https://github.com/PHPCompatibility/PHPCompatibilityWP#how-to-use -->
<config name="testVersion" value="7.4-" />
<rule ref="LipePlugin">
<exclude name="WordPress.DB.DirectDatabaseQuery.DirectQuery" />
<exclude name="WordPress.DB.DirectDatabaseQuery.NoCaching" />
<exclude name="WordPress.DB.PreparedSQL.NotPrepared" />
</rule>
<!-- These don't require extra un-slashing and sanitization -->
<rule ref="WordPress.Security.ValidatedSanitizedInput">
<properties>
<property name="customUnslashingSanitizingFunctions" type="array">
<element value="go_live_update_urls_sanitize_field" />
</property>
</properties>
</rule>
<!-- 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="Go_Live_Update_Urls" />
<element value="OnPoint_Plugins" />
<element value="go_live_update_urls" />
<element value="go-live-update-urls" />
</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" value="go-live-update-urls" />
</properties>
</rule>
</ruleset>