-
Notifications
You must be signed in to change notification settings - Fork 1
/
phpcs.ruleset.xml
42 lines (35 loc) · 1.56 KB
/
phpcs.ruleset.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?xml version="1.0"?>
<ruleset name="netzstrategen PHP Coding Standards">
<description>netzstrategen PHP Coding Standards</description>
<exclude-pattern>vendor</exclude-pattern>
<exclude-pattern>*.md</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>./bootstrap/cache</exclude-pattern>
<exclude-pattern>./public/dist/css</exclude-pattern>
<exclude-pattern>./public/dist/js</exclude-pattern>
<exclude-pattern>./storage/framework/</exclude-pattern>
<file>.</file>
<arg name="extensions" value="php"/>
<arg name="colors"/>
<!-- Show sniff codes in all reports -->
<arg value="s"/>
<!-- Exclude Warnings -->
<arg value="n"/>
<rule ref="Drupal">
<exclude name="Drupal.Commenting.FileComment.Missing" />
<exclude name="Generic.PHP.DisallowShortOpenTag.EchoFound"/>
<exclude name="Drupal.Commenting.FileComment.NamespaceNoFileDoc"/>
<exclude name="Drupal.Commenting.FileComment.FileTag"/>
<exclude name="Drupal.Classes.ClassFileName.NoMatch"/>>
<!-- See: https://github.com/squizlabs/PHP_CodeSniffer/issues/453 -->
<exclude name="Zend.Files.ClosingTag.NotAllowed"/>
<!-- Custom exclusions. -->
<exclude name="Drupal.Commenting.InlineComment.DocBlock"/>
<exclude name="Drupal.NamingConventions.ValidFunctionName.ScopeNotCamelCaps"/>
</rule>
<rule ref="Drupal.Commenting.FunctionComment">
<exclude name="Drupal.Commenting.FunctionComment.TypeHintMissing"/>
<exclude name="Drupal.Commenting.FunctionComment.IncorrectTypeHint"/>
</rule>
<rule ref="Generic.PHP.Syntax"/>
</ruleset>