-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
69 lines (59 loc) · 2.49 KB
/
Copy pathphpcs.xml.dist
File metadata and controls
69 lines (59 loc) · 2.49 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?xml version="1.0" ?>
<ruleset name="drupflare-rom">
<description>
Drupal coding standards, minus every sniff that fights this repo's layout.
</description>
<file>src</file>
<file>tests</file>
<arg name="extensions" value="php,module,install,inc" />
<arg value="sp" />
<arg name="colors" />
<rule ref="Drupal">
<exclude name="Drupal.Commenting.InlineComment.NotCapital" />
<exclude name="Drupal.Commenting.InlineComment.InvalidEndChar" />
</rule>
<rule ref="DrupalPractice" />
<rule ref="Drupal.Files.LineLength">
<properties>
<property name="lineLimit" value="110" />
</properties>
</rule>
<rule ref="Drupal.NamingConventions.ValidGlobal">
<exclude-pattern>tests/*</exclude-pattern>
</rule>
<rule ref="Drupal.Arrays.Array.LongLineDeclaration">
<exclude-pattern>tests/run-driver-suite.php</exclude-pattern>
</rule>
<rule ref="DrupalPractice.General.ClassName.ClassPrefix">
<exclude-pattern>tests/fixtures/*</exclude-pattern>
<exclude-pattern>src/pdo-shim.php</exclude-pattern>
</rule>
<!--
src/pdo-shim.php declares the three classes ext-pdo would declare, so PHP names
them, not us: three classes cannot each match one filename, PDO is an acronym,
and a "CfwDoSqlite" prefix would make them the wrong classes.
-->
<rule ref="Squiz.Classes.ClassFileName">
<exclude-pattern>src/pdo-shim.php</exclude-pattern>
</rule>
<rule ref="Drupal.NamingConventions.ValidClassName">
<exclude-pattern>src/pdo-shim.php</exclude-pattern>
</rule>
<rule ref="Drupal">
<exclude name="Generic.PHP.UpperCaseConstant.Found" />
<exclude name="Generic.WhiteSpace.DisallowTabIndent" />
<exclude name="Drupal.WhiteSpace.ScopeIndent" />
<exclude name="Drupal.WhiteSpace.ObjectOperatorIndent" />
<exclude name="Drupal.WhiteSpace.ScopeClosingBrace" />
<exclude name="Drupal.Arrays.Array.ArrayIndentation" />
<exclude name="Drupal.Classes.ClassDeclaration.BraceOnNewLine" />
<exclude name="Drupal.Classes.ClassDeclaration.CloseBraceAfterBody" />
<exclude name="Drupal.Functions.MultiLineFunctionDeclaration.BraceOnNewLine" />
<exclude name="Drupal.Functions.MultiLineFunctionDeclaration.Indent" />
<exclude name="Drupal.ControlStructures.ControlSignature.NewlineAfterCloseBrace" />
<exclude name="Squiz.WhiteSpace.FunctionSpacing.AfterLast" />
<exclude name="Squiz.WhiteSpace.FunctionSpacing.BeforeFirst" />
<exclude name="Drupal.Classes.UseGlobalClass.RedundantUseStatement" />
<exclude name="VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable" />
</rule>
</ruleset>