PHP Classes

File: phpcs.xml.dist

Recommend this page to a friend!
  Classes of Filip Štamcar   PHP Configuration Writer   phpcs.xml.dist   Download  
File: phpcs.xml.dist
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP Configuration Writer
Generate configuration files as PHP scripts
Author: By
Last change:
Date: 5 years ago
Size: 3,416 bytes
 

Contents

Class file image Download
<?xml version="1.0"?> <ruleset name="SunshineCMS"> <description>The coding standard for SunshineCMS (based on PSR2).</description> <file>.</file> <exclude-pattern>example.php</exclude-pattern> <exclude-pattern>*/build/*</exclude-pattern> <exclude-pattern>*/dist/*</exclude-pattern> <exclude-pattern>*/vendor/*</exclude-pattern> <arg name="parallel" value="75" /> <arg name="basepath" value="."/> <arg name="colors" /> <arg value="p" /> <!-- Include the whole PSR2 standard --> <rule ref="PSR2" /> <!-- Include some sniffs from other standards that don't conflict with PSR2 --> <rule ref="Squiz.Arrays.ArrayBracketSpacing" /> <rule ref="Squiz.Arrays.ArrayDeclaration" /> <rule ref="Squiz.Commenting.DocCommentAlignment" /> <rule ref="Squiz.Commenting.VariableComment" /> <rule ref="Squiz.Formatting.OperatorBracket" /> <rule ref="Generic.Arrays.DisallowLongArraySyntax" /> <rule ref="Generic.Formatting.SpaceAfterCast" /> <rule ref="Generic.NamingConventions.ConstructorName" /> <rule ref="Generic.PHP.DeprecatedFunctions" /> <rule ref="Generic.Strings.UnnecessaryStringConcat" /> <!-- Disallow blank line indentation and spaces at the end of line --> <rule ref="Squiz.WhiteSpace.SuperfluousWhitespace"> <properties> <property name="ignoreBlankLines" value="false" /> </properties> </rule> <rule ref="Squiz.WhiteSpace.SuperfluousWhitespace.StartFile"> <severity>10</severity> </rule> <rule ref="Squiz.WhiteSpace.SuperfluousWhitespace.EndFile"> <severity>10</severity> </rule> <rule ref="Squiz.WhiteSpace.SuperfluousWhitespace.EmptyLines"> <severity>10</severity> </rule> <!-- Custom indent rules for arrays --> <rule ref="Generic.Arrays.DisallowLongArraySyntax" /> <rule ref="Squiz.Arrays.ArrayDeclaration.DoubleArrowNotAligned"> <severity>0</severity> </rule> <rule ref="Squiz.Arrays.ArrayDeclaration.KeyNotAligned"> <severity>0</severity> </rule> <rule ref="Squiz.Arrays.ArrayDeclaration.ValueNotAligned"> <severity>0</severity> </rule> <rule ref="Squiz.Arrays.ArrayDeclaration.CloseBraceNotAligned"> <severity>0</severity> </rule> <rule ref="Squiz.Arrays.ArrayDeclaration.CloseBraceNewLine"> <severity>0</severity> </rule> <!-- Check var names, but we don't want checks about underscores --> <rule ref="Squiz.NamingConventions.ValidVariableName" /> <rule ref="Squiz.NamingConventions.ValidVariableName.PublicHasUnderscore"> <severity>0</severity> </rule> <rule ref="Squiz.NamingConventions.ValidVariableName.PrivateNoUnderscore"> <severity>0</severity> </rule> <!-- Only one argument per line in multi-line function calls --> <rule ref="PEAR.Functions.FunctionCallSignature"> <properties> <property name="allowMultipleArguments" value="false" /> </properties> </rule> <!-- Ban some functions --> <rule ref="Generic.PHP.ForbiddenFunctions"> <properties> <property name="forbiddenFunctions" type="array"> <element key="sizeof" value="count" /> <element key="delete" value="unset" /> <element key="print" value="echo" /> </property> </properties> </rule> </ruleset>