Mercurial > hg > cmmr2012-drupal-site
comparison vendor/drupal/coder/phpcs.xml.dist @ 4:a9cd425dd02b
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:11:55 +0000 |
parents | c75dbcec494b |
children |
comparison
equal
deleted
inserted
replaced
3:307d7a7fd348 | 4:a9cd425dd02b |
---|---|
4 | 4 |
5 <file>coder_sniffer</file> | 5 <file>coder_sniffer</file> |
6 | 6 |
7 <exclude-pattern>*/Test/*</exclude-pattern> | 7 <exclude-pattern>*/Test/*</exclude-pattern> |
8 | 8 |
9 <rule ref="PHPCS" /> | 9 <!-- The following comes from the 2.9 PHPCS ruleset.xml { --> |
10 | |
11 <!-- Include the whole PEAR standard --> | |
12 <rule ref="PEAR"/> | |
13 | |
14 <!-- Include some sniffs from other standards that don't conflict with PEAR --> | |
15 <rule ref="Squiz.Arrays.ArrayBracketSpacing" /> | |
16 <rule ref="Squiz.Arrays.ArrayDeclaration" /> | |
17 <rule ref="Squiz.Commenting.ClosingDeclarationComment" /> | |
18 <rule ref="Squiz.ControlStructures.ElseIfDeclaration" /> | |
19 <rule ref="Squiz.Commenting.BlockComment" /> | |
20 <rule ref="Squiz.Commenting.DocCommentAlignment" /> | |
21 <rule ref="Squiz.Commenting.EmptyCatchComment" /> | |
22 <rule ref="Squiz.Commenting.InlineComment" /> | |
23 <rule ref="Squiz.Commenting.LongConditionClosingComment" /> | |
24 <rule ref="Squiz.Commenting.PostStatementComment" /> | |
25 <rule ref="Squiz.Formatting.OperatorBracket" /> | |
26 <rule ref="Squiz.Operators.ComparisonOperatorUsage" /> | |
27 <rule ref="Squiz.PHP.DisallowInlineIf" /> | |
28 <rule ref="Squiz.Strings.ConcatenationSpacing" /> | |
29 <rule ref="Squiz.WhiteSpace.ControlStructureSpacing" /> | |
30 <rule ref="Squiz.WhiteSpace.FunctionClosingBraceSpace" /> | |
31 <rule ref="Squiz.WhiteSpace.FunctionSpacing" /> | |
32 <rule ref="Squiz.WhiteSpace.OperatorSpacing" /> | |
33 <rule ref="Squiz.WhiteSpace.SuperfluousWhitespace" /> | |
34 <rule ref="Generic.Commenting.Todo"/> | |
35 <rule ref="Generic.ControlStructures.InlineControlStructure"/> | |
36 <rule ref="Generic.Formatting.DisallowMultipleStatements"/> | |
37 <rule ref="Generic.Formatting.SpaceAfterCast"/> | |
38 <rule ref="Generic.NamingConventions.ConstructorName"/> | |
39 <rule ref="Generic.PHP.DeprecatedFunctions"/> | |
40 <rule ref="Generic.PHP.LowerCaseKeyword"/> | |
41 <rule ref="Generic.Strings.UnnecessaryStringConcat"/> | |
42 <rule ref="PSR2.Files.EndFileNewline"/> | |
43 <rule ref="Zend.Files.ClosingTag"/> | |
44 | |
45 <!-- Only one argument per line in multi-line function calls --> | |
46 <rule ref="PEAR.Functions.FunctionCallSignature"> | |
47 <properties> | |
48 <property name="allowMultipleArguments" value="false"/> | |
49 </properties> | |
50 </rule> | |
51 | |
52 <!-- Have 12 chars padding maximum and always show as errors --> | |
53 <rule ref="Generic.Formatting.MultipleStatementAlignment"> | |
54 <properties> | |
55 <property name="maxPadding" value="12"/> | |
56 <property name="error" value="true"/> | |
57 </properties> | |
58 </rule> | |
59 | |
60 <!-- } End of original PHPCS ruleset.xml --> | |
10 | 61 |
11 <!-- The following sniffs are disabled because we don't want them --> | 62 <!-- The following sniffs are disabled because we don't want them --> |
12 <rule ref="PEAR.Commenting.FileComment"> | 63 <rule ref="PEAR.Commenting.FileComment"> |
13 <exclude name="PEAR.Commenting.FileComment.MissingAuthorTag"/> | 64 <exclude name="PEAR.Commenting.FileComment.MissingAuthorTag"/> |
14 <exclude name="PEAR.Commenting.FileComment.MissingLicenseTag"/> | 65 <exclude name="PEAR.Commenting.FileComment.MissingLicenseTag"/> |