summaryrefslogtreecommitdiffstatshomepage
path: root/core/phpcs.xml.dist
diff options
context:
space:
mode:
Diffstat (limited to 'core/phpcs.xml.dist')
-rw-r--r--core/phpcs.xml.dist15
1 files changed, 8 insertions, 7 deletions
diff --git a/core/phpcs.xml.dist b/core/phpcs.xml.dist
index ae9106fbd308..004f43b78dbc 100644
--- a/core/phpcs.xml.dist
+++ b/core/phpcs.xml.dist
@@ -37,8 +37,6 @@
<include-pattern>core/lib/*</include-pattern>
<include-pattern>core/modules/*/tests/modules/*</include-pattern>
</rule>
- <rule ref="Drupal.CSS.ClassDefinitionNameSpacing"/>
- <rule ref="Drupal.CSS.ColourDefinition"/>
<rule ref="Drupal.Classes.ClassCreateInstance"/>
<rule ref="Drupal.Classes.ClassDeclaration"/>
<rule ref="Drupal.Classes.ClassFileName"/>
@@ -100,6 +98,8 @@
<include-pattern>*/core/profiles/*</include-pattern>
<include-pattern>*/core/recipes/*</include-pattern>
<include-pattern>*/core/themes/*</include-pattern>
+ <include-pattern>*/core/modules/*</include-pattern>
+ <exclude-pattern>*/core/modules/*/tests</exclude-pattern>
</rule>
<rule ref="Drupal.Files.TxtFileLineLength"/>
<rule ref="Drupal.Formatting.MultiLineAssignment"/>
@@ -135,7 +135,6 @@
<rule ref="Drupal.Semantics.RemoteAddress"/>
<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"/>
@@ -183,7 +182,13 @@
<rule ref="Generic.PHP.DisallowShortOpenTag"/>
<rule ref="Generic.PHP.LowerCaseKeyword"/>
<rule ref="Generic.PHP.UpperCaseConstant"/>
+ <rule ref="Generic.Strings.UnnecessaryStringConcat">
+ <properties>
+ <property name="allowMultiline" value="true"/>
+ </properties>
+ </rule>
<rule ref="Generic.WhiteSpace.DisallowTabIndent"/>
+ <rule ref="Generic.WhiteSpace.LanguageConstructSpacing"/>
<!-- Internal sniffs -->
<rule ref="Internal.NoCodeFound">
@@ -191,9 +196,6 @@
<exclude-pattern>*.yml</exclude-pattern>
</rule>
- <!-- MySource sniffs -->
- <rule ref="MySource.Debug.DebugCode"/>
-
<!-- PEAR sniffs -->
<rule ref="PEAR.Files.IncludingFile"/>
<!-- Disable some error messages that we do not want. -->
@@ -392,7 +394,6 @@
<property name="spacing" value="1"/>
</properties>
</rule>
- <rule ref="Squiz.WhiteSpace.LanguageConstructSpacing"/>
<rule ref="Squiz.WhiteSpace.OperatorSpacing">
<properties>
<property name="ignoreNewlines" value="true"/>