Commit fa817099 authored by Jonathan Smith's avatar Jonathan Smith Committed by Jonathan Smith
Browse files

Issue #3249325 by jonathan1055: Align phpcs.xml.dist with 2.0

parent 7fa6436f
Loading
Loading
Loading
Loading
+12 −0
Changes for phpcs.xml.dist: 12 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -3,6 +3,11 @@
  <description>Default PHP CodeSniffer configuration for Scheduler.</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/"/>

  <!-- Initially include all Drupal and DrupalPractice sniffs. -->
  <rule ref="Drupal"/>
  <rule ref="DrupalPractice"/>
@@ -24,6 +29,13 @@
    <exclude name="Drupal.Commenting.InlineComment.SpacingAfter"/>
  </rule>

  <!-- This rule is disabled in Coder 8.3.10, but undefined variables will -->
  <!-- be reported when using earlier versions. Hence re-enable the rule so -->
  <!-- we do not get surprises when testing with other versions. -->
  <rule ref="DrupalPractice.CodeAnalysis.VariableAnalysis.UndefinedVariable">
    <severity>5</severity>
  </rule>

  <!-- Ignore all files that match these patterns. By default the full file -->
  <!-- path is checked, unless type=relative is used. There is an implied * -->
  <!-- wildcard at each end and periods and slashes must be escaped using \ -->