-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.ruleset.xml
32 lines (26 loc) · 1.05 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
<?xml version="1.0"?>
<ruleset name="Netzstrategen PHP Coding Standards">
<description>Netzstrategen PHP Coding Standards</description>
<exclude-pattern>*/node_modules/*</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"/>
<!-- See: https://github.com/squizlabs/PHP_CodeSniffer/issues/453 -->
<exclude name="Zend.Files.ClosingTag.NotAllowed"/>
<!--
Exclusions required because WordPress.
-->
<exclude name="Drupal.NamingConventions.ValidGlobal.GlobalUnderScore"/>
<exclude name="Drupal.Commenting.InlineComment.DocBlock"/>
<exclude name="Drupal.NamingConventions.ValidFunctionName.ScopeNotCamelCaps"/>
</rule>
<rule ref="Generic.PHP.Syntax"/>
</ruleset>