-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #43: Add customized phpcs.xml that passes.
- Loading branch information
1 parent
089deaa
commit 80810cc
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ruleset name="DrupalCollaboraOnline"> | ||
<description>Modified PHP CodeSniffer configuration based on Drupal.</description> | ||
|
||
<arg name="extensions" value="inc,install,module,php,theme,yml,json"/> | ||
|
||
<exclude-pattern>./vendor/*</exclude-pattern> | ||
<exclude-pattern>./web/*</exclude-pattern> | ||
<file>.</file> | ||
|
||
<rule ref="vendor/drupal/coder/coder_sniffer/Drupal/ruleset.xml"> | ||
<!-- Accept 4 spaces of indentation for now. --> | ||
<exclude name="Drupal.WhiteSpace.ScopeIndent"/> | ||
<exclude name="Drupal.Arrays.Array.ArrayIndentation"/> | ||
<exclude name="Drupal.Functions.MultiLineFunctionDeclaration.Indent"/> | ||
<exclude name="Drupal.WhiteSpace.ScopeClosingBrace.BreakIndent"/> | ||
<exclude name="Drupal.WhiteSpace.ScopeClosingBrace.Indent"/> | ||
<exclude name="Drupal.WhiteSpace.ObjectOperatorIndent.Indent"/> | ||
<!-- Accept file doc comment with copyright. --> | ||
<exclude name="Drupal.Commenting.FileComment.NamespaceNoFileDoc"/> | ||
<exclude name="Drupal.Commenting.FileComment.WrongStyle"/> | ||
<!-- Accept imports order from PhpStorm. --> | ||
<exclude name="SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses.IncorrectlyOrderedUses"/> | ||
<!-- Keep existing identifiers, as renaming would be disruptive. --> | ||
<exclude name="Drupal.NamingConventions.ValidFunctionName.InvalidName"/> | ||
<exclude name="Drupal.NamingConventions.ValidVariableName.LowerCamelName"/> | ||
<exclude name="Drupal.NamingConventions.ValidFunctionName.ScopeNotCamelCaps"/> | ||
|
||
<!-- Fix doc comments later. --> | ||
<exclude name="Drupal.Commenting.ClassComment"/> | ||
<exclude name="Drupal.Commenting.DataTypeNamespace"/> | ||
<exclude name="Drupal.Commenting.DocComment"/> | ||
<exclude name="Drupal.Commenting.FunctionComment"/> | ||
<exclude name="Drupal.Commenting.VariableComment"/> | ||
|
||
<!-- Fix translatable strings later. --> | ||
<exclude name="Drupal.Semantics.FunctionT.WhiteSpace"/> | ||
</rule> | ||
</ruleset> |