69 lines
2.9 KiB
XML
69 lines
2.9 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!-- This file contains coding standards directives for the Drupal Examples for
|
|
Developers project. It uses the PHP Code Sniffer and Drupal Coder projects
|
|
to enforce standard Drupal coding standards on this project. See
|
|
https://www.drupal.org/node/2176147 for instructions on how to add a sniff
|
|
here.-->
|
|
<ruleset name="drupal_examples">
|
|
<description>Default PHP CodeSniffer configuration for Examples for Developers.</description>
|
|
<file>.</file>
|
|
<arg name="extensions" value="css,inc,install,module,php,profile,test,theme"/>
|
|
<rule ref="Drupal.Array"/>
|
|
<rule ref="Drupal.CSS"/>
|
|
<rule ref="Drupal.Classes"/>
|
|
<rule ref="Drupal.Commenting">
|
|
<exclude name="Drupal.Commenting.DocComment.MissingShort"/>
|
|
<!-- TagsNotGrouped has false positives for @code/@endcode. See
|
|
https://www.drupal.org/node/2502837 -->
|
|
<exclude name="Drupal.Commenting.DocComment.TagsNotGrouped"/>
|
|
<!-- We have to document hooks in a non-standard way in order to be
|
|
informative -->
|
|
<exclude name="Drupal.Commenting.HookComment.HookParamDoc"/>
|
|
<exclude name="Drupal.Commenting.HookComment.HookReturnDoc"/>
|
|
</rule>
|
|
<rule ref="Drupal.ControlStructures"/>
|
|
<rule ref="Drupal.Files"/>
|
|
<rule ref="Drupal.Formatting"/>
|
|
<rule ref="Drupal.Functions"/>
|
|
<rule ref="Drupal.InfoFiles"/>
|
|
<rule ref="Drupal.NamingConventions"/>
|
|
<rule ref="Drupal.Strings"/>
|
|
<rule ref="Drupal.WhiteSpace"/>
|
|
|
|
<rule ref="Generic.Files.LineEndings"/>
|
|
<rule ref="Generic.Formatting.SpaceAfterCast"/>
|
|
<rule ref="Generic.Functions.FunctionCallArgumentSpacing"/>
|
|
<rule ref="Generic.Functions.OpeningFunctionBraceKernighanRitchie"/>
|
|
<rule ref="Generic.PHP.DeprecatedFunctions"/>
|
|
<rule ref="Generic.PHP.DisallowShortOpenTag"/>
|
|
<rule ref="Generic.PHP.LowerCaseKeyword"/>
|
|
<rule ref="Generic.PHP.UpperCaseConstant"/>
|
|
<rule ref="Generic.WhiteSpace.DisallowTabIndent"/>
|
|
|
|
<rule ref="MySource.Debug.DebugCode"/>
|
|
|
|
<rule ref="PSR2.Classes.PropertyDeclaration"/>
|
|
|
|
<rule ref="Squiz.Arrays.ArrayBracketSpacing"/>
|
|
<rule ref="Squiz.CSS.ClassDefinitionOpeningBraceSpace"/>
|
|
<rule ref="Squiz.CSS.ColonSpacing"/>
|
|
<rule ref="Squiz.CSS.DisallowMultipleStyleDefinitions"/>
|
|
<rule ref="Squiz.CSS.EmptyClassDefinition"/>
|
|
<rule ref="Squiz.CSS.EmptyStyleDefinition"/>
|
|
<rule ref="Squiz.CSS.MissingColon"/>
|
|
<rule ref="Squiz.CSS.SemicolonSpacing"/>
|
|
<rule ref="Squiz.Commenting.DocCommentAlignment"/>
|
|
<rule ref="Squiz.ControlStructures.ForEachLoopDeclaration"/>
|
|
<rule ref="Squiz.ControlStructures.ForLoopDeclaration"/>
|
|
<rule ref="Squiz.PHP.LowercasePHPFunctions"/>
|
|
<rule ref="Squiz.PHP.NonExecutableCode"/>
|
|
<rule ref="Squiz.Scope.MethodScope"/>
|
|
<rule ref="Squiz.WhiteSpace.LanguageConstructSpacing"/>
|
|
|
|
<rule ref="Squiz.WhiteSpace.SemicolonSpacing"/>
|
|
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace"/>
|
|
|
|
<rule ref="Zend.Files.ClosingTag"/>
|
|
|
|
</ruleset>
|