2021-07-27 14:46:32 +02:00

41 lines
1.4 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="scheduler">
<description>Default PHP CodeSniffer configuration for Scheduler.</description>
<file>.</file>
<!-- Initially include all Drupal and DrupalPractice sniffs. -->
<rule ref="Drupal"/>
<rule ref="DrupalPractice"/>
<!-- Check these file extensions -->
<arg name="extensions" value="php,module,inc,install,css,md,yml"/>
<!-- Use 's' to print the full sniff name in the report. -->
<arg value="s"/>
<arg value="-colors"/>
<arg name="report-width" value="130"/>
<rule ref="DrupalPractice">
<!-- Allow empty lines after comments, we don't like this rule. -->
<exclude name="DrupalPractice.Commenting.CommentEmptyLine.SpacingAfter"/>
</rule>
<rule ref="Drupal">
<!-- There appears to be two rules checking nearly the same thing. -->
<exclude name="Drupal.Commenting.InlineComment.SpacingAfter"/>
</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 \ -->
<exclude-pattern>\/_+ignore</exclude-pattern>
<exclude-pattern>interdif</exclude-pattern>
<!-- Increase the allowed line length for inline array declarations. -->
<rule ref="Drupal.Arrays.Array">
<properties>
<property name="lineLimit" value="120"/>
</properties>
</rule>
</ruleset>