2015-09-27 14:10:11 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<ruleset name="drupal_core">
|
|
|
|
<description>Default PHP CodeSniffer configuration for Drupal core.</description>
|
|
|
|
<file>.</file>
|
2015-11-26 17:38:37 +00:00
|
|
|
<arg name="extensions" value="inc,install,module,php,profile,test,theme"/>
|
2015-09-27 14:10:11 +00:00
|
|
|
|
|
|
|
<!--Exclude third party code.-->
|
|
|
|
<exclude-pattern>./assets/vendor/*</exclude-pattern>
|
|
|
|
|
|
|
|
<!--Exclude test files that are intentionally empty, or intentionally violate coding standards.-->
|
|
|
|
<exclude-pattern>./modules/system/tests/fixtures/HtaccessTest</exclude-pattern>
|
|
|
|
|
2016-02-25 04:14:55 +00:00
|
|
|
<!-- Only include specific sniffs that pass. This ensures that, if new sniffs are added, HEAD does not fail.-->
|
|
|
|
<!-- Drupal sniffs -->
|
2016-04-27 10:18:44 +00:00
|
|
|
<rule ref="Drupal.Classes.ClassCreateInstance"/>
|
2016-03-14 00:22:44 +00:00
|
|
|
<rule ref="Drupal.Classes.UnusedUseStatement"/>
|
2016-02-25 04:14:55 +00:00
|
|
|
<rule ref="Drupal.CSS.ClassDefinitionNameSpacing"/>
|
|
|
|
<rule ref="Drupal.CSS.ColourDefinition"/>
|
|
|
|
<rule ref="Drupal.Commenting.DocCommentStar"/>
|
|
|
|
<rule ref="Drupal.Commenting.FileComment"/>
|
|
|
|
<rule ref="Drupal.ControlStructures.ElseIf"/>
|
2016-04-27 10:05:37 +00:00
|
|
|
<rule ref="Drupal.Files.EndFileNewline"/>
|
2016-02-25 04:14:55 +00:00
|
|
|
<rule ref="Drupal.Files.TxtFileLineLength"/>
|
2016-04-27 10:12:34 +00:00
|
|
|
<rule ref="Drupal.Formatting.SpaceInlineIf"/>
|
2016-04-28 13:31:22 +00:00
|
|
|
<rule ref="Drupal.Formatting.SpaceUnaryOperator"/>
|
2016-02-25 04:14:55 +00:00
|
|
|
<rule ref="Drupal.Functions.DiscouragedFunctions"/>
|
2016-04-18 17:25:44 +00:00
|
|
|
<rule ref="Drupal.Functions.FunctionDeclaration.SpaceAfter"/>
|
|
|
|
<rule ref="Drupal.Functions.FunctionDeclaration.SpaceBeforeParenthesis"/>
|
2016-02-25 04:14:55 +00:00
|
|
|
<rule ref="Drupal.InfoFiles.AutoAddedKeys"/>
|
|
|
|
<rule ref="Drupal.InfoFiles.ClassFiles"/>
|
|
|
|
<rule ref="Drupal.InfoFiles.DuplicateEntry"/>
|
|
|
|
<rule ref="Drupal.InfoFiles.Required"/>
|
|
|
|
<rule ref="Drupal.Semantics.EmptyInstall"/>
|
|
|
|
<rule ref="Drupal.Semantics.FunctionWatchdog"/>
|
|
|
|
<rule ref="Drupal.Semantics.InstallHooks"/>
|
|
|
|
<rule ref="Drupal.Semantics.LStringTranslatable"/>
|
|
|
|
<rule ref="Drupal.Semantics.PregSecurity"/>
|
|
|
|
<rule ref="Drupal.Semantics.TInHookMenu"/>
|
|
|
|
<rule ref="Drupal.Semantics.TInHookSchema"/>
|
|
|
|
<rule ref="Drupal.WhiteSpace.Comma"/>
|
|
|
|
<rule ref="Drupal.WhiteSpace.ObjectOperatorIndent"/>
|
|
|
|
|
|
|
|
<!-- Generic sniffs -->
|
|
|
|
<rule ref="Generic.Files.LineEndings"/>
|
2016-04-28 08:42:12 +00:00
|
|
|
<rule ref="Generic.Functions.FunctionCallArgumentSpacing"/>
|
2016-02-25 04:14:55 +00:00
|
|
|
<rule ref="Generic.NamingConventions.UpperCaseConstantName"/>
|
|
|
|
<rule ref="Generic.PHP.DeprecatedFunctions"/>
|
|
|
|
<rule ref="Generic.PHP.DisallowShortOpenTag"/>
|
|
|
|
<rule ref="Generic.WhiteSpace.DisallowTabIndent"/>
|
|
|
|
|
2015-09-27 14:10:11 +00:00
|
|
|
</ruleset>
|