This repository was archived by the owner on Sep 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
47 lines (33 loc) · 1.44 KB
/
phpcs.xml.dist
File metadata and controls
47 lines (33 loc) · 1.44 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
<?xml version="1.0"?>
<ruleset name="MultilingualPress 2.x Standard" namespace="Inpsyde\MultilingualPress\Standard\v2">
<description>Coding standard for MultilingualPress version 2.x.</description>
<file>./src/inc</file>
<file>./src/multilingual-press.php</file>
<file>./src/uninstall.php</file>
<arg value="sp"/>
<rule ref="PHPCompatibility"/>
<rule ref="WordPress">
<!-- Exclude as we won't touch comments or documentation for 2.x anymore. -->
<exclude name="Generic.Commenting"/>
<exclude name="Squiz.Commenting"/>
<!-- Exclude to be able to use "@noinspection PhpUnusedParameterInspection" annotations. -->
<exclude name="Squiz.Functions.FunctionDeclarationArgumentSpacing.SpacingAfterHint"/>
<!-- Exclude as MultilingualPress adheres to the PSR-0 standard. -->
<exclude name="WordPress.Files.FileName"/>
<!-- Exclude VIP-specific sniffs, for now. -->
<exclude name="WordPress.VIP"/>
<!-- Exclude as we won't touch translations for 2.x anymore. -->
<exclude name="WordPress.WP.I18n"/>
</rule>
<rule ref="WordPress.CSRF.NonceVerification">
<properties>
<property name="customNonceVerificationFunctions" value="is_valid"/>
</properties>
</rule>
<!-- Adapt to be able to use namespaced hooks in dot notation such as "multilingualpress.active_taxonomies". -->
<rule ref="WordPress.NamingConventions.ValidHookName">
<properties>
<property name="additionalWordDelimiters" value="."/>
</properties>
</rule>
</ruleset>