phpcs.xml 1.67 KB
Newer Older
1
<?xml version="1.0"?>
2 3 4 5 6
<ruleset name="commerce">
  <description>Default PHP CodeSniffer configuration for Commerce.</description>
  <file>.</file>
  <arg name="extensions" value="php,module,inc,install,test,profile,theme"/>
  <config name="drupal_core_version" value="8"/>
7

8 9 10
  <exclude-pattern>*/.git/*</exclude-pattern>
  <exclude-pattern>*/config/*</exclude-pattern>
  <exclude-pattern>*/css/*</exclude-pattern>
bojanz's avatar
bojanz committed
11
  <exclude-pattern>*/js/*</exclude-pattern>
12
  <exclude-pattern>*/icons/*</exclude-pattern>
13
  <exclude-pattern>README.md</exclude-pattern>
14

15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
  <rule ref="Drupal">
    <!-- Commerce is not yet compliant with the new deprecation format. -->
    <exclude name="Drupal.Commenting.Deprecated"/>
    <exclude name="Drupal.Semantics.FunctionTriggerError"/>

    <!-- The following rules are intentionally disabled. -->
    <exclude name="Drupal.Commenting.ClassComment.Missing"/>
    <exclude name="Drupal.Files.LineLength.TooLong"/>
    <exclude name="Drupal.Arrays.Array.LongLineDeclaration"/>
    <exclude name="Drupal.Semantics.FunctionT.NotLiteralString"/>
    <!-- Complains about example code. -->
    <exclude name="Generic.CodeAnalysis.UselessOverridingMethod.Found"/>
    <!-- Complains about tests which don't need short descriptions. -->
    <exclude name="Drupal.Commenting.DocComment.MissingShort"/>
    <exclude name="Drupal.Commenting.DocComment.ShortNotCapital"/>
    <exclude name="Drupal.Commenting.DocComment.ShortSingleLine"/>
    <!-- Complains about constraint plugins. -->
    <exclude name="Drupal.Commenting.VariableComment"/>
    <!-- Complains about config entity types. -->
    <exclude name="Drupal.NamingConventions.ValidVariableName.LowerCamelName"/>
35
  </rule>
36 37

</ruleset>