-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
43 lines (34 loc) · 1.53 KB
/
phpcs.xml.dist
File metadata and controls
43 lines (34 loc) · 1.53 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
<ruleset name="webforme">
<description>Webform coding styles</description>
<!-- Use Drupal coding standards -->
<rule ref="Drupal"/>
<rule ref="DrupalPractice"/>
<!-- Test all the Drupal PHP file extensions -->
<arg name="extensions" value="php,module,inc,install,test,profile,theme" />
<!-- Issue #3185082: Drupal.Arrays.Array.LongLineDeclaration make me write less readable code -->
<rule ref="Drupal.Arrays.Array">
<exclude name="Drupal.Arrays.Array.LongLineDeclaration"/>
</rule>
<!-- Issue #3173782: Increase line length limit -->
<rule ref="Drupal.Files.LineLength">
<properties>
<property name="lineLimit" value="120" />
<property name="absoluteLineLimit" value="0" />
</properties>
</rule>
<!-- Rules that need to ignored -->
<rule ref="Drupal">
<exclude name="Drupal.Arrays.Array.ArrayIndentation"/>
<exclude name="Drupal.Commenting.DocComment.ShortNotCapital"/>
<exclude name="Drupal.Commenting.FunctionComment.TypeHintMissing"/>
<exclude name="Drupal.Commenting.InlineComment.NotCapital"/>
<exclude name="Drupal.Files.LineLength.TooLong"/>
<exclude name="Drupal.NamingConventions.ValidVariableName.LowerCamelName"/>
<exclude name="Drupal.Semantics.FunctionT.NotLiteralString"/>
<exclude name="Drupal.Semantics.FunctionT.ConcatString"/>
<exclude name="Drupal.Strings.UnnecessaryStringConcat.Found"/>
</rule>
<rule ref="Generic.CodeAnalysis.UselessOverridingMethod">
<exclude name="Generic.CodeAnalysis.UselessOverridingMethod.Found"/>
</rule>
</ruleset>