annotate vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PHPCS/ruleset.xml @ 8:50b0d041100e

Further files for download
author Chris Cannam
date Mon, 05 Feb 2018 10:56:40 +0000
parents 4c8ae668cc8c
children
rev   line source
Chris@0 1 <?xml version="1.0"?>
Chris@0 2 <ruleset name="PHP_CodeSniffer">
Chris@0 3 <description>The coding standard for PHP_CodeSniffer itself.</description>
Chris@0 4 <exclude-pattern>*/Tests/*</exclude-pattern>
Chris@0 5
Chris@0 6 <!-- Include the whole PEAR standard -->
Chris@0 7 <rule ref="PEAR"/>
Chris@0 8
Chris@0 9 <!-- Include some sniffs from other standards that don't conflict with PEAR -->
Chris@0 10 <rule ref="Squiz.Arrays.ArrayBracketSpacing" />
Chris@0 11 <rule ref="Squiz.Arrays.ArrayDeclaration" />
Chris@0 12 <rule ref="Squiz.Commenting.ClosingDeclarationComment" />
Chris@0 13 <rule ref="Squiz.ControlStructures.ElseIfDeclaration" />
Chris@0 14 <rule ref="Squiz.Commenting.BlockComment" />
Chris@0 15 <rule ref="Squiz.Commenting.DocCommentAlignment" />
Chris@0 16 <rule ref="Squiz.Commenting.EmptyCatchComment" />
Chris@0 17 <rule ref="Squiz.Commenting.InlineComment" />
Chris@0 18 <rule ref="Squiz.Commenting.LongConditionClosingComment" />
Chris@0 19 <rule ref="Squiz.Commenting.PostStatementComment" />
Chris@0 20 <rule ref="Squiz.Formatting.OperatorBracket" />
Chris@0 21 <rule ref="Squiz.Operators.ComparisonOperatorUsage" />
Chris@0 22 <rule ref="Squiz.PHP.DisallowInlineIf" />
Chris@0 23 <rule ref="Squiz.Strings.ConcatenationSpacing" />
Chris@0 24 <rule ref="Squiz.WhiteSpace.ControlStructureSpacing" />
Chris@0 25 <rule ref="Squiz.WhiteSpace.FunctionClosingBraceSpace" />
Chris@0 26 <rule ref="Squiz.WhiteSpace.FunctionSpacing" />
Chris@0 27 <rule ref="Squiz.WhiteSpace.OperatorSpacing" />
Chris@0 28 <rule ref="Squiz.WhiteSpace.SuperfluousWhitespace" />
Chris@0 29 <rule ref="Generic.Commenting.Todo"/>
Chris@0 30 <rule ref="Generic.ControlStructures.InlineControlStructure"/>
Chris@0 31 <rule ref="Generic.Formatting.DisallowMultipleStatements"/>
Chris@0 32 <rule ref="Generic.Formatting.SpaceAfterCast"/>
Chris@0 33 <rule ref="Generic.NamingConventions.ConstructorName"/>
Chris@0 34 <rule ref="Generic.PHP.DeprecatedFunctions"/>
Chris@0 35 <rule ref="Generic.PHP.LowerCaseKeyword"/>
Chris@0 36 <rule ref="Generic.Strings.UnnecessaryStringConcat"/>
Chris@0 37 <rule ref="PSR2.Files.EndFileNewline"/>
Chris@0 38 <rule ref="Zend.Files.ClosingTag"/>
Chris@0 39
Chris@0 40 <!-- Only one argument per line in multi-line function calls -->
Chris@0 41 <rule ref="PEAR.Functions.FunctionCallSignature">
Chris@0 42 <properties>
Chris@0 43 <property name="allowMultipleArguments" value="false"/>
Chris@0 44 </properties>
Chris@0 45 </rule>
Chris@0 46
Chris@0 47 <!-- Have 12 chars padding maximum and always show as errors -->
Chris@0 48 <rule ref="Generic.Formatting.MultipleStatementAlignment">
Chris@0 49 <properties>
Chris@0 50 <property name="maxPadding" value="12"/>
Chris@0 51 <property name="error" value="true"/>
Chris@0 52 </properties>
Chris@0 53 </rule>
Chris@0 54
Chris@0 55 </ruleset>