mirror of
https://github.com/yiisoft/yii2.git
synced 2025-10-29 17:48:15 +08:00
42 lines
1.3 KiB
XML
42 lines
1.3 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ruleset name="Yii2">
|
|
<rule ref="vendor/yiisoft/yii2-coding-standards/Yii2"></rule>
|
|
|
|
<!-- TODO: fix errors -->
|
|
<rule ref="PSR1.Classes.ClassDeclaration.MultipleClasses">
|
|
<exclude-pattern>tests/*</exclude-pattern>
|
|
</rule>
|
|
|
|
<!-- TODO: fix errors -->
|
|
<rule ref="PSR1.Methods.CamelCapsMethodName.NotCamelCaps">
|
|
<exclude-pattern>tests/*</exclude-pattern>
|
|
</rule>
|
|
|
|
<!-- TODO: fix errors -->
|
|
<rule ref="Squiz.NamingConventions.ValidVariableName.PrivateNoUnderscore">
|
|
<exclude-pattern>tests/*</exclude-pattern>
|
|
</rule>
|
|
|
|
<rule ref="PSR1.Files.SideEffects.FoundWithSymbols">
|
|
<exclude-pattern>tests/bootstrap.php</exclude-pattern>
|
|
<exclude-pattern>tests/framework/web/UserTest.php</exclude-pattern>
|
|
</rule>
|
|
|
|
<rule ref="Internal.NoCodeFound">
|
|
<exclude-pattern>tests/data/views/simple.php</exclude-pattern>
|
|
</rule>
|
|
|
|
<!-- display progress -->
|
|
<arg value="p"/>
|
|
<!-- Show error codes -->
|
|
<arg value="s"/>
|
|
<arg name="colors"/>
|
|
|
|
<!-- generate relative paths -->
|
|
<arg name="basepath" value="."/>
|
|
|
|
<exclude-pattern>framework/views/*</exclude-pattern>
|
|
<exclude-pattern>tests/data/views/*</exclude-pattern>
|
|
<exclude-pattern>tests/js/*</exclude-pattern>
|
|
</ruleset>
|