annotate vendor/squizlabs/php_codesniffer/src/Standards/PSR1/ruleset.xml @ 5:12f9dff5fda9 tip

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents a9cd425dd02b
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="PSR1" xsi:noNamespaceSchemaLocation="../../../phpcs.xsd">
Chris@4 3 <description>The PSR1 coding standard.</description>
Chris@4 4
Chris@4 5 <!-- 2. Files -->
Chris@4 6
Chris@4 7 <!-- 2.1. PHP Tags -->
Chris@4 8
Chris@4 9 <!-- PHP code MUST use the long <?php ?> tags or the short-echo <?= ?> tags; it MUST NOT use the other tag variations. -->
Chris@4 10 <rule ref="Generic.PHP.DisallowShortOpenTag"/>
Chris@4 11 <rule ref="Generic.PHP.DisallowShortOpenTag.EchoFound">
Chris@4 12 <severity>0</severity>
Chris@4 13 </rule>
Chris@4 14
Chris@4 15 <!-- 2.2. Character Encoding -->
Chris@4 16
Chris@4 17 <!-- PHP code MUST use only UTF-8 without BOM. -->
Chris@4 18 <rule ref="Generic.Files.ByteOrderMark"/>
Chris@4 19
Chris@4 20 <!-- 2.3. Side Effects -->
Chris@4 21
Chris@4 22 <!-- A file SHOULD declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it SHOULD execute logic with side effects, but SHOULD NOT do both. -->
Chris@4 23 <!-- checked by PSR1.Files.SideEffects -->
Chris@4 24
Chris@4 25 <!-- 3. Namespace and Class Names -->
Chris@4 26
Chris@4 27 <!-- Namespaces and classes MUST follow PSR-0.
Chris@4 28 This means each class is in a file by itself, and is in a namespace of at least one level: a top-level vendor name. -->
Chris@4 29 <!-- checked by PSR1.Classes.ClassDeclaration -->
Chris@4 30
Chris@4 31 <!-- Class names MUST be declared in StudlyCaps. -->
Chris@4 32 <rule ref="Squiz.Classes.ValidClassName"/>
Chris@4 33
Chris@4 34 <!-- 4. Class Constants, Properties, and Methods -->
Chris@4 35
Chris@4 36 <!-- 4.1. Constants -->
Chris@4 37
Chris@4 38 <!-- Class constants MUST be declared in all upper case with underscore separators. -->
Chris@4 39 <rule ref="Generic.NamingConventions.UpperCaseConstantName"/>
Chris@4 40
Chris@4 41 <!-- 4.3. Methods -->
Chris@4 42
Chris@4 43 <!-- Method names MUST be declared in camelCase(). -->
Chris@4 44 <!-- checked by PSR1.Methods.CamelCapsMethodName -->
Chris@4 45
Chris@4 46 </ruleset>