Mercurial > hg > cmmr2012-drupal-site
diff 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 |
line wrap: on
line diff
--- a/core/phpcs.xml.dist Thu Feb 28 13:11:55 2019 +0000 +++ b/core/phpcs.xml.dist Thu May 09 15:34:47 2019 +0100 @@ -24,11 +24,11 @@ <!-- Only include specific sniffs that pass. This ensures that, if new sniffs are added, HEAD does not fail.--> <!-- Drupal sniffs --> - <rule ref="Drupal.Array.Array"> + <rule ref="Drupal.Arrays.Array"> <!-- Sniff for these errors: CommaLastItem --> - <exclude name="Drupal.Array.Array.ArrayClosingIndentation"/> - <exclude name="Drupal.Array.Array.ArrayIndentation"/> - <exclude name="Drupal.Array.Array.LongLineDeclaration"/> + <exclude name="Drupal.Arrays.Array.ArrayClosingIndentation"/> + <exclude name="Drupal.Arrays.Array.ArrayIndentation"/> + <exclude name="Drupal.Arrays.Array.LongLineDeclaration"/> </rule> <rule ref="Drupal.Classes.ClassCreateInstance"/> <rule ref="Drupal.Classes.ClassDeclaration"/> @@ -130,6 +130,7 @@ <rule ref="Drupal.Semantics.PregSecurity"/> <rule ref="Drupal.Semantics.TInHookMenu"/> <rule ref="Drupal.Semantics.TInHookSchema"/> + <rule ref="Drupal.Strings.UnnecessaryStringConcat"/> <rule ref="Drupal.WhiteSpace.CloseBracketSpacing"/> <rule ref="Drupal.WhiteSpace.Comma"/> <rule ref="Drupal.WhiteSpace.EmptyLines"/> @@ -147,6 +148,7 @@ <!-- Generic sniffs --> <rule ref="Generic.Arrays.DisallowLongArraySyntax"/> + <rule ref="Generic.CodeAnalysis.EmptyPHPStatement" /> <rule ref="Generic.Files.ByteOrderMark"/> <rule ref="Generic.Files.LineEndings"/> <rule ref="Generic.Formatting.SpaceAfterCast"/> @@ -206,6 +208,9 @@ <rule ref="PEAR.Functions.FunctionCallSignature.Indent"> <severity>0</severity> </rule> + <rule ref="PEAR.Functions.FunctionCallSignature.OpeningIndent"> + <severity>0</severity> + </rule> <rule ref="PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket"> <severity>0</severity> </rule>