-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathphpcs.xml
More file actions
54 lines (40 loc) · 1.52 KB
/
Copy pathphpcs.xml
File metadata and controls
54 lines (40 loc) · 1.52 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
48
49
50
51
52
53
54
<?xml version="1.0"?>
<ruleset name="CMW.WordPress">
<!-- Add source codes in the report. -->
<arg value="s" />
<arg name="colors" />
<!-- Check all PHP files in directory tree by default. -->
<arg name="extensions" value="php" />
<file>.</file>
<rule ref="WordPress">
<!-- Allow slash-delimited hook names. -->
<exclude name="WordPress.NamingConventions.ValidHookName.UseUnderscores" />
<!-- I prefer my control structures. -->
<exclude name="WordPress.WhiteSpace.ControlStructureSpacing.BlankLineAfterEnd" />
<!-- PSR4: Allow short file names. -->
<exclude name="WordPress.Files.FileName.InvalidClassFileName" />
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase" />
<!-- Allow example code blocks. -->
<exclude name="Squiz.PHP.CommentedOutCode.Found" />
<exclude name="Squiz.Commenting.BlockComment.HasEmptyLineBefore" />
<!-- Remaining checks. -->
<exclude name="WordPress.PHP.StrictInArray.MissingTrueStrict" />
</rule>
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array" value="civicrm-wp-member-sync" />
</properties>
</rule>
<!-- Enforce short array syntax. -->
<rule ref="Generic.Arrays.DisallowShortArraySyntax.Found">
<severity>0</severity>
</rule>
<rule ref="Generic.Arrays.DisallowLongArraySyntax.Found" />
<!-- Nesting levels. -->
<rule ref="Generic.Metrics.NestingLevel">
<properties>
<property name="absoluteNestingLevel" value="5" />
</properties>
</rule>
<exclude-pattern>assets/civicrm/*</exclude-pattern>
</ruleset>