Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
b0087ffe
Commit
b0087ffe
authored
Sep 04, 2017
by
catch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2902396
by mfernea: Add sniffs already passing
parent
6ea40f4c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
4 deletions
+29
-4
core/phpcs.xml.dist
core/phpcs.xml.dist
+29
-4
No files found.
core/phpcs.xml.dist
View file @
b0087ffe
...
...
@@ -16,6 +16,7 @@
<!-- Only include specific sniffs that pass. This ensures that, if new sniffs are added, HEAD does not fail.-->
<!-- Drupal sniffs -->
<rule
ref=
"../vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/Array/DisallowLongArraySyntaxSniff.php"
/>
<rule
ref=
"../vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/Classes/ClassCreateInstanceSniff.php"
/>
<rule
ref=
"../vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/Classes/ClassDeclarationSniff.php"
/>
<rule
ref=
"../vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/Classes/FullyQualifiedNamespaceSniff.php"
/>
...
...
@@ -54,7 +55,6 @@
<exclude
name=
"Drupal.Commenting.FunctionComment.InvalidReturnNotVoid"
/>
<exclude
name=
"Drupal.Commenting.FunctionComment.InvalidTypeHint"
/>
<exclude
name=
"Drupal.Commenting.FunctionComment.Missing"
/>
<exclude
name=
"Drupal.Commenting.FunctionComment.MissingFile"
/>
<exclude
name=
"Drupal.Commenting.FunctionComment.MissingParamComment"
/>
<exclude
name=
"Drupal.Commenting.FunctionComment.MissingParamType"
/>
<exclude
name=
"Drupal.Commenting.FunctionComment.MissingReturnComment"
/>
...
...
@@ -68,6 +68,7 @@
<rule
ref=
"../vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/ControlStructures/ElseIfSniff.php"
/>
<rule
ref=
"../vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/ControlStructures/ControlSignatureSniff.php"
/>
<rule
ref=
"../vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/Files/EndFileNewlineSniff.php"
/>
<rule
ref=
"../vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/Files/FileEncodingSniff.php"
/>
<rule
ref=
"../vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/Files/TxtFileLineLengthSniff.php"
/>
<rule
ref=
"../vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/Formatting/MultiLineAssignmentSniff.php"
/>
<rule
ref=
"../vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/Formatting/SpaceInlineIfSniff.php"
/>
...
...
@@ -97,6 +98,7 @@
<rule
ref=
"../vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/Semantics/TInHookSchemaSniff.php"
/>
<rule
ref=
"../vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/WhiteSpace/CommaSniff.php"
/>
<rule
ref=
"../vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/WhiteSpace/EmptyLinesSniff.php"
/>
<rule
ref=
"../vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/WhiteSpace/NamespaceSniff.php"
/>
<rule
ref=
"../vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/WhiteSpace/ObjectOperatorIndentSniff.php"
/>
<rule
ref=
"../vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/WhiteSpace/ObjectOperatorSpacingSniff.php"
/>
<rule
ref=
"../vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/WhiteSpace/OpenTagNewlineSniff.php"
/>
...
...
@@ -107,15 +109,34 @@
<rule
ref=
"../vendor/drupal/coder/coder_sniffer/DrupalPractice/Sniffs/Commenting/ExpectedExceptionSniff.php"
/>
<!-- Generic sniffs -->
<rule
ref=
"Generic.Files.ByteOrderMark"
/>
<rule
ref=
"Generic.Files.LineEndings"
/>
<rule
ref=
"Generic.Functions.FunctionCallArgumentSpacing"
/>
<rule
ref=
"Generic.NamingConventions.ConstructorName"
/>
<rule
ref=
"Generic.NamingConventions.ConstructorName"
/>
<rule
ref=
"Generic.NamingConventions.UpperCaseConstantName"
/>
<rule
ref=
"Generic.PHP.DeprecatedFunctions"
/>
<rule
ref=
"Generic.PHP.DisallowShortOpenTag"
/>
<rule
ref=
"Generic.PHP.UpperCaseConstant"
/>
<rule
ref=
"Generic.WhiteSpace.DisallowTabIndent"
/>
<rule
ref=
"Generic.Arrays.DisallowLongArraySyntax"
/>
<!-- MySource sniffs -->
<rule
ref=
"MySource.Debug.DebugCode"
/>
<!-- PEAR sniffs -->
<rule
ref=
"PEAR.Files.IncludingFile"
/>
<!-- Disable some error messages that we do not want. -->
<rule
ref=
"PEAR.Files.IncludingFile.UseIncludeOnce"
>
<severity>
0
</severity>
</rule>
<rule
ref=
"PEAR.Files.IncludingFile.UseInclude"
>
<severity>
0
</severity>
</rule>
<rule
ref=
"PEAR.Files.IncludingFile.UseRequireOnce"
>
<severity>
0
</severity>
</rule>
<rule
ref=
"PEAR.Files.IncludingFile.UseRequire"
>
<severity>
0
</severity>
</rule>
<!-- PSR-2 sniffs -->
<rule
ref=
"PSR2.Classes.PropertyDeclaration"
>
...
...
@@ -123,11 +144,15 @@
</rule>
<!-- Squiz sniffs -->
<rule
ref=
"Squiz.PHP.LowercasePHPFunctions"
/>
<rule
ref=
"Squiz.Strings.ConcatenationSpacing"
>
<properties>
<property
name=
"spacing"
value=
"1"
/>
<property
name=
"ignoreNewlines"
value=
"true"
/>
</properties>
</rule>
</rule>
<!-- Zend sniffs -->
<rule
ref=
"Zend.Files.ClosingTag"
/>
</ruleset>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment