annotate vendor/squizlabs/php_codesniffer/src/Standards/Zend/ruleset.xml @ 4:a9cd425dd02b
Update, including to Drupal core 8.6.10
author |
Chris Cannam |
date |
Thu, 28 Feb 2019 13:11:55 +0000 |
parents |
|
children |
|
rev |
line source |
Chris@4
|
1 <?xml version="1.0"?>
|
Chris@4
|
2 <ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Zend" xsi:noNamespaceSchemaLocation="../../../phpcs.xsd">
|
Chris@4
|
3 <description>A coding standard based on an early Zend Framework coding standard. Note that this standard is out of date.</description>
|
Chris@4
|
4
|
Chris@4
|
5 <!-- Include some sniffs from all around the place -->
|
Chris@4
|
6 <rule ref="Generic.Functions.FunctionCallArgumentSpacing"/>
|
Chris@4
|
7 <rule ref="Generic.Functions.OpeningFunctionBraceBsdAllman"/>
|
Chris@4
|
8 <rule ref="Generic.PHP.DisallowShortOpenTag"/>
|
Chris@4
|
9 <rule ref="Generic.WhiteSpace.DisallowTabIndent"/>
|
Chris@4
|
10 <rule ref="PEAR.Classes.ClassDeclaration"/>
|
Chris@4
|
11 <rule ref="PEAR.ControlStructures.ControlSignature"/>
|
Chris@4
|
12 <rule ref="PEAR.Functions.FunctionCallSignature"/>
|
Chris@4
|
13 <rule ref="PEAR.Functions.ValidDefaultValue"/>
|
Chris@4
|
14 <rule ref="PEAR.WhiteSpace.ScopeClosingBrace"/>
|
Chris@4
|
15 <rule ref="Squiz.Functions.GlobalFunction"/>
|
Chris@4
|
16
|
Chris@4
|
17 <!-- Lines can be 80 chars long, show errors at 120 chars -->
|
Chris@4
|
18 <rule ref="Generic.Files.LineLength">
|
Chris@4
|
19 <properties>
|
Chris@4
|
20 <property name="lineLimit" value="80"/>
|
Chris@4
|
21 <property name="absoluteLineLimit" value="120"/>
|
Chris@4
|
22 </properties>
|
Chris@4
|
23 </rule>
|
Chris@4
|
24
|
Chris@4
|
25 <!-- Use Unix newlines -->
|
Chris@4
|
26 <rule ref="Generic.Files.LineEndings">
|
Chris@4
|
27 <properties>
|
Chris@4
|
28 <property name="eolChar" value="\n"/>
|
Chris@4
|
29 </properties>
|
Chris@4
|
30 </rule>
|
Chris@4
|
31
|
Chris@4
|
32 </ruleset>
|