yiiapi/vendor/phpunit/phpunit-mock-objects/build/PHPCS/ruleset.xml

(开头部分) 1KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<?xml version="1.0"?>
<ruleset name="Sebastian">
 <description>Sebastian Bergmann's coding standard</description>

 <rule ref="Generic.CodeAnalysis.ForLoopShouldBeWhileLoop"/>
 <rule ref="Generic.CodeAnalysis.ForLoopWithTestFunctionCall"/>
 <rule ref="Generic.CodeAnalysis.JumbledIncrementer"/>
 <rule ref="Generic.CodeAnalysis.UnconditionalIfStatement"/>
 <rule ref="Generic.CodeAnalysis.UnnecessaryFinalModifier"/>
 <rule ref="Generic.CodeAnalysis.UselessOverridingMethod"/>

 <rule ref="Generic.Commenting.Todo"/>

 <rule ref="Generic.ControlStructures.InlineControlStructure"/>

 <rule ref="Generic.Files.LineEndings"/>

 <rule ref="Generic.Formatting.DisallowMultipleStatements"/>
 <rule ref="Generic.Formatting.NoSpaceAfterCast"/>

 <rule ref="Generic.Functions.OpeningFunctionBraceBsdAllman"/>
 <rule ref="PEAR.Functions.ValidDefaultValue"/>

 <rule ref="Generic.NamingConventions.ConstructorName"/>
 <rule ref="Generic.NamingConventions.UpperCaseConstantName"/>
 <rule ref="PEAR.NamingConventions.ValidClassName"/>

 <rule ref="Generic.PHP.DisallowShortOpenTag"/>
 <rule ref="Generic.PHP.NoSilencedErrors"/>
 <rule ref="Generic.PHP.UpperCaseConstant"/>

 <rule ref="Generic.WhiteSpace.DisallowTabIndent"/>
 <rule ref="Generic.WhiteSpace.ScopeIndent"/>
 <rule ref="Squiz.WhiteSpace.SuperfluousWhitespace"/>
</ruleset>

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。