76 lines
3.2 KiB
XML
76 lines
3.2 KiB
XML
<?xml version="1.0"?>
|
|
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd">
|
|
<!-- Show progress and sniff codes -->
|
|
<arg value="ps"/>
|
|
|
|
<arg name="cache" value=".phpcs-cache"/>
|
|
<arg name="colors"/>
|
|
<arg name="extensions" value="php"/>
|
|
|
|
<file>.</file>
|
|
|
|
<exclude-pattern>*/build/*</exclude-pattern>
|
|
<exclude-pattern>*/config.inc.php</exclude-pattern>
|
|
<exclude-pattern>*/libraries/cache/*</exclude-pattern>
|
|
<exclude-pattern>*/libraries/language_stats.inc.php</exclude-pattern>
|
|
<exclude-pattern>*/node_modules/*</exclude-pattern>
|
|
<exclude-pattern>*/test/doctum-config.php</exclude-pattern>
|
|
<exclude-pattern>*/tmp/*</exclude-pattern>
|
|
<exclude-pattern>*/twig-templates/*</exclude-pattern>
|
|
<exclude-pattern>*/vendor/*</exclude-pattern>
|
|
<exclude-pattern>*/.git/*</exclude-pattern>
|
|
|
|
<rule ref="PhpMyAdmin"/>
|
|
|
|
<rule ref="Squiz.Classes.ValidClassName.NotCamelCaps">
|
|
<exclude-pattern>*/libraries/classes/Plugins/Transformations/*</exclude-pattern>
|
|
</rule>
|
|
|
|
<!-- Rules that should be followed, but are not required -->
|
|
<rule ref="SlevomatCodingStandard.Classes.ConstantSpacing.IncorrectCountOfBlankLinesAfterConstant">
|
|
<severity>4</severity>
|
|
</rule>
|
|
<rule ref="SlevomatCodingStandard.Classes.ParentCallSpacing.IncorrectLinesCountAfterControlStructure">
|
|
<severity>4</severity>
|
|
</rule>
|
|
<rule ref="SlevomatCodingStandard.Classes.ParentCallSpacing.IncorrectLinesCountBeforeControlStructure">
|
|
<severity>4</severity>
|
|
</rule>
|
|
<rule ref="SlevomatCodingStandard.Commenting.RequireOneLineDocComment.MultiLineDocComment">
|
|
<severity>4</severity>
|
|
</rule>
|
|
<rule ref="SlevomatCodingStandard.Functions.RequireTrailingCommaInCall.MissingTrailingComma">
|
|
<severity>4</severity>
|
|
</rule>
|
|
<rule ref="SlevomatCodingStandard.Functions.RequireTrailingCommaInDeclaration.MissingTrailingComma">
|
|
<severity>4</severity>
|
|
</rule>
|
|
<rule ref="SlevomatCodingStandard.Operators.DisallowEqualOperators">
|
|
<severity>4</severity>
|
|
</rule>
|
|
<rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint">
|
|
<severity>4</severity>
|
|
</rule>
|
|
<rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingTraversableTypeHintSpecification">
|
|
<severity>4</severity>
|
|
</rule>
|
|
<rule ref="SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingNativeTypeHint">
|
|
<severity>4</severity>
|
|
</rule>
|
|
<rule ref="SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingTraversableTypeHintSpecification">
|
|
<severity>4</severity>
|
|
</rule>
|
|
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingNativeTypeHint">
|
|
<severity>4</severity>
|
|
</rule>
|
|
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingTraversableTypeHintSpecification">
|
|
<severity>4</severity>
|
|
</rule>
|
|
<rule ref="SlevomatCodingStandard.TypeHints.UnionTypeHintFormat.DisallowedShortNullable">
|
|
<severity>4</severity>
|
|
</rule>
|
|
<rule ref="Squiz.NamingConventions.ValidVariableName.NotCamelCaps">
|
|
<severity>4</severity>
|
|
</rule>
|
|
</ruleset>
|