diff vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PSR1/ruleset.xml @ 0:c75dbcec494b

Initial commit from drush-created site
author Chris Cannam
date Thu, 05 Jul 2018 14:24:15 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PSR1/ruleset.xml	Thu Jul 05 14:24:15 2018 +0000
@@ -0,0 +1,45 @@
+<?xml version="1.0"?>
+<ruleset name="PSR1">
+ <description>The PSR1 coding standard.</description>
+
+ <!-- 2. Files -->
+
+ <!-- 2.1. PHP Tags -->
+
+ <!-- PHP code MUST use the long <?php ?> tags or the short-echo <?= ?> tags; it MUST NOT use the other tag variations. -->
+ <rule ref="Generic.PHP.DisallowShortOpenTag.EchoFound">
+  <severity>0</severity>
+ </rule>
+
+ <!-- 2.2. Character Encoding -->
+
+ <!-- PHP code MUST use only UTF-8 without BOM. -->
+ <rule ref="Generic.Files.ByteOrderMark"/>
+
+ <!-- 2.3. Side Effects -->
+
+ <!-- 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. -->
+ <!-- checked in Files/SideEffectsSniff -->
+
+ <!-- 3. Namespace and Class Names -->
+
+ <!-- Namespaces and classes MUST follow PSR-0.
+      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. -->
+ <!-- checked in Classes/ClassDeclarationSniff -->
+
+ <!-- Class names MUST be declared in StudlyCaps. -->
+ <rule ref="Squiz.Classes.ValidClassName"/>
+
+ <!-- 4. Class Constants, Properties, and Methods -->
+
+ <!-- 4.1. Constants -->
+
+ <!-- Class constants MUST be declared in all upper case with underscore separators. -->
+ <rule ref="Generic.NamingConventions.UpperCaseConstantName"/>
+
+ <!-- 4.3. Methods -->
+
+ <!-- Method names MUST be declared in camelCase(). -->
+ <!-- checked in Methods/CamelCapsMethodNameSniff -->
+
+</ruleset>