Mercurial > hg > cmmr2012-drupal-site
comparison core/phpcs.xml.dist @ 5:12f9dff5fda9 tip
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:34:47 +0100 |
parents | a9cd425dd02b |
children |
comparison
equal
deleted
inserted
replaced
4:a9cd425dd02b | 5:12f9dff5fda9 |
---|---|
22 <!-- @todo This rule may be removed when https://www.drupal.org/node/1848264 is resolved. --> | 22 <!-- @todo This rule may be removed when https://www.drupal.org/node/1848264 is resolved. --> |
23 <exclude-pattern>./core/lib/Drupal/Component/Diff/</exclude-pattern> | 23 <exclude-pattern>./core/lib/Drupal/Component/Diff/</exclude-pattern> |
24 | 24 |
25 <!-- Only include specific sniffs that pass. This ensures that, if new sniffs are added, HEAD does not fail.--> | 25 <!-- Only include specific sniffs that pass. This ensures that, if new sniffs are added, HEAD does not fail.--> |
26 <!-- Drupal sniffs --> | 26 <!-- Drupal sniffs --> |
27 <rule ref="Drupal.Array.Array"> | 27 <rule ref="Drupal.Arrays.Array"> |
28 <!-- Sniff for these errors: CommaLastItem --> | 28 <!-- Sniff for these errors: CommaLastItem --> |
29 <exclude name="Drupal.Array.Array.ArrayClosingIndentation"/> | 29 <exclude name="Drupal.Arrays.Array.ArrayClosingIndentation"/> |
30 <exclude name="Drupal.Array.Array.ArrayIndentation"/> | 30 <exclude name="Drupal.Arrays.Array.ArrayIndentation"/> |
31 <exclude name="Drupal.Array.Array.LongLineDeclaration"/> | 31 <exclude name="Drupal.Arrays.Array.LongLineDeclaration"/> |
32 </rule> | 32 </rule> |
33 <rule ref="Drupal.Classes.ClassCreateInstance"/> | 33 <rule ref="Drupal.Classes.ClassCreateInstance"/> |
34 <rule ref="Drupal.Classes.ClassDeclaration"/> | 34 <rule ref="Drupal.Classes.ClassDeclaration"/> |
35 <rule ref="Drupal.Classes.FullyQualifiedNamespace"/> | 35 <rule ref="Drupal.Classes.FullyQualifiedNamespace"/> |
36 <rule ref="Drupal.Classes.InterfaceName"/> | 36 <rule ref="Drupal.Classes.InterfaceName"/> |
128 <rule ref="Drupal.Semantics.InstallHooks"/> | 128 <rule ref="Drupal.Semantics.InstallHooks"/> |
129 <rule ref="Drupal.Semantics.LStringTranslatable"/> | 129 <rule ref="Drupal.Semantics.LStringTranslatable"/> |
130 <rule ref="Drupal.Semantics.PregSecurity"/> | 130 <rule ref="Drupal.Semantics.PregSecurity"/> |
131 <rule ref="Drupal.Semantics.TInHookMenu"/> | 131 <rule ref="Drupal.Semantics.TInHookMenu"/> |
132 <rule ref="Drupal.Semantics.TInHookSchema"/> | 132 <rule ref="Drupal.Semantics.TInHookSchema"/> |
133 <rule ref="Drupal.Strings.UnnecessaryStringConcat"/> | |
133 <rule ref="Drupal.WhiteSpace.CloseBracketSpacing"/> | 134 <rule ref="Drupal.WhiteSpace.CloseBracketSpacing"/> |
134 <rule ref="Drupal.WhiteSpace.Comma"/> | 135 <rule ref="Drupal.WhiteSpace.Comma"/> |
135 <rule ref="Drupal.WhiteSpace.EmptyLines"/> | 136 <rule ref="Drupal.WhiteSpace.EmptyLines"/> |
136 <rule ref="Drupal.WhiteSpace.Namespace"/> | 137 <rule ref="Drupal.WhiteSpace.Namespace"/> |
137 <rule ref="Drupal.WhiteSpace.ObjectOperatorIndent"/> | 138 <rule ref="Drupal.WhiteSpace.ObjectOperatorIndent"/> |
145 <!-- Drupal Practice sniffs --> | 146 <!-- Drupal Practice sniffs --> |
146 <rule ref="DrupalPractice.Commenting.ExpectedException"/> | 147 <rule ref="DrupalPractice.Commenting.ExpectedException"/> |
147 | 148 |
148 <!-- Generic sniffs --> | 149 <!-- Generic sniffs --> |
149 <rule ref="Generic.Arrays.DisallowLongArraySyntax"/> | 150 <rule ref="Generic.Arrays.DisallowLongArraySyntax"/> |
151 <rule ref="Generic.CodeAnalysis.EmptyPHPStatement" /> | |
150 <rule ref="Generic.Files.ByteOrderMark"/> | 152 <rule ref="Generic.Files.ByteOrderMark"/> |
151 <rule ref="Generic.Files.LineEndings"/> | 153 <rule ref="Generic.Files.LineEndings"/> |
152 <rule ref="Generic.Formatting.SpaceAfterCast"/> | 154 <rule ref="Generic.Formatting.SpaceAfterCast"/> |
153 <rule ref="Generic.Functions.FunctionCallArgumentSpacing"/> | 155 <rule ref="Generic.Functions.FunctionCallArgumentSpacing"/> |
154 <rule ref="Generic.Functions.OpeningFunctionBraceKernighanRitchie"> | 156 <rule ref="Generic.Functions.OpeningFunctionBraceKernighanRitchie"> |
204 </rule> | 206 </rule> |
205 <!-- Disable some error messages that we do not want. --> | 207 <!-- Disable some error messages that we do not want. --> |
206 <rule ref="PEAR.Functions.FunctionCallSignature.Indent"> | 208 <rule ref="PEAR.Functions.FunctionCallSignature.Indent"> |
207 <severity>0</severity> | 209 <severity>0</severity> |
208 </rule> | 210 </rule> |
211 <rule ref="PEAR.Functions.FunctionCallSignature.OpeningIndent"> | |
212 <severity>0</severity> | |
213 </rule> | |
209 <rule ref="PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket"> | 214 <rule ref="PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket"> |
210 <severity>0</severity> | 215 <severity>0</severity> |
211 </rule> | 216 </rule> |
212 <rule ref="PEAR.Functions.FunctionCallSignature.CloseBracketLine"> | 217 <rule ref="PEAR.Functions.FunctionCallSignature.CloseBracketLine"> |
213 <severity>0</severity> | 218 <severity>0</severity> |