Skip to content
Snippets Groups Projects
Commit 3b59e152 authored by Jonathan Smith's avatar Jonathan Smith Committed by Tim Rohaly
Browse files

Issue #3178576-33 by jonathan1055: [meta] Coding Standards in Rules 8.x

parent ec0b4dbc
Branches
Tags
No related merge requests found
......@@ -3,6 +3,11 @@
<description>Default PHP CodeSniffer configuration for Rules.</description>
<file>.</file>
<!-- Temporary fix until drupal.org testbot script is changed. This is also
compatible with running phpcs locally, and on Travis, so can be committed.
See https://www.drupal.org/project/drupalci_testbot/issues/3283978 -->
<config name="installed_paths" value="../../drupal/coder/coder_sniffer/,../../sirbrillig/phpcs-variable-analysis/,../../slevomat/coding-standard/"/>
<exclude-pattern>./d7-tests/</exclude-pattern>
<exclude-pattern>./vendor/</exclude-pattern>
<exclude-pattern>./config/</exclude-pattern>
......@@ -49,6 +54,13 @@
<exclude name="DrupalPractice.Commenting.CommentEmptyLine.SpacingAfter"/>
</rule>
<!-- Increase the allowed line length for inline array declarations. -->
<rule ref="Drupal.Arrays.Array">
<properties>
<property name="lineLimit" value="100"/>
</properties>
</rule>
<!-- We always want short array syntax only. -->
<rule ref="Generic.Arrays.DisallowLongArraySyntax" />
</ruleset>
......@@ -184,7 +184,7 @@ class ContextConfig {
* @todo Implement.
*/
public function checkConfig(CoreContextAwarePluginInterface $plugin) {
// @todo.
// @todo Implement.
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment