1
+ <?xml version =" 1.0" ?>
2
+ <ruleset name =" Inpsyde Coding Standards Configuration" >
3
+ <!-- See https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-ruleset.xml -->
4
+
5
+ <!-- Set a description for this ruleset. -->
6
+ <description >A custom set of code standard rules to check for Inpsyde Codex.</description >
7
+
8
+ <exclude-pattern >vendor/*</exclude-pattern >
9
+ <exclude-pattern >node_modules/*</exclude-pattern >
10
+ <exclude-pattern >*.min.js</exclude-pattern >
11
+
12
+ <!-- TRUE, FALSE, NULL are constant, we write in uppercase. -->
13
+ <rule ref =" Generic.PHP.UpperCaseConstant" />
14
+
15
+ <!-- Allow . in hook names -->
16
+ <rule ref =" WordPress.NamingConventions.ValidHookName" >
17
+ <properties >
18
+ <property name =" additionalWordDelimiters" value =" ." />
19
+ </properties >
20
+ </rule >
21
+
22
+ <!-- Include the WordPress ruleset, with exclusions. -->
23
+ <rule ref =" WordPress" >
24
+ <!-- Yoda conditions are not helpful, cost only time. -->
25
+ <exclude name =" WordPress.PHP.YodaConditions" />
26
+
27
+ <exclude name =" Generic.PHP.LowerCaseConstant" />
28
+ <exclude name =" Generic.WhiteSpace.ScopeIndent.Incorrect" />
29
+ <exclude name =" Generic.Commenting.DocComment.MissingShort" />
30
+
31
+ <exclude name =" PEAR.Functions.FunctionCallSignature" />
32
+
33
+ <!-- Remove spaces before types check. -->
34
+ <exclude name =" Squiz.Commenting.VariableComment.VarIndent" />
35
+ <exclude name =" Squiz.Commenting.FunctionComment.SpacingBeforeParamType" />
36
+ <exclude name =" Squiz.Commenting.FunctionComment.SpacingBeforeParams" />
37
+
38
+ <!-- Exclude Full Stops on inline comment. -->
39
+ <exclude name =" Squiz.Commenting.InlineComment.InvalidEndChar" />
40
+ <exclude name =" Squiz.Commenting.FunctionComment.MissingParamComment" />
41
+
42
+ <!-- Remove empty line not required before block comment -->
43
+ <exclude name =" Squiz.Commenting.BlockComment.HasEmptyLineBefore" />
44
+ <!-- Remove rule for /** style for each var -->
45
+ <exclude name =" Squiz.Commenting.VariableComment.WrongStyle" />
46
+
47
+ <exclude name =" WordPress.WhiteSpace.ScopeIndent.Incorrect" />
48
+ <exclude name =" WordPress.Arrays.ArrayKeySpacingRestrictions" />
49
+ <exclude name =" WordPress.Arrays.ArrayDeclaration.KeyNotAligned" />
50
+
51
+ <!-- Remove spaces instead of tabs check -->
52
+ <exclude name =" WordPress.Arrays.ArrayDeclaration.ValueNotAligned" />
53
+ <exclude name =" WordPress.Arrays.ArrayDeclaration.CloseBraceNotAligned" />
54
+ </rule >
55
+ </ruleset >
0 commit comments