zx/vendor/ucloud/ucloud-sdk-php/phpcs.xml

36 lines
1.5 KiB
XML
Raw Permalink Normal View History

2024-07-02 15:32:59 +08:00
<?xml version="1.0"?>
<ruleset name="PHP_CodeSniffer">
<description>The coding standard for laravel package</description>
<file>src</file>
<exclude-pattern>*.json</exclude-pattern>
<exclude-pattern>*.xml</exclude-pattern>
<arg name="colors"/>
<arg value="p"/>
<rule ref="PSR2">
<exclude name="Generic.Files.LineLength"/>
</rule>
<rule ref="PSR1.Classes.ClassDeclaration.MissingNamespace" />
<rule ref="Generic.Commenting.DocComment.MissingShort" />
<rule ref="Generic.Commenting.DocComment.SpacingBeforeTags" />
<rule ref="Generic.Commenting.DocComment.SpacingBeforeTags" />
<rule ref="MySource.Commenting.FunctionComment.InvalidReturn" />
<!-- <rule ref="MySource.Commenting.FunctionComment.MissingParamComment" />-->
<rule ref="MySource.Commenting.FunctionComment.TypeHintMissing" />
<rule ref="Generic.Arrays.DisallowLongArraySyntax" />
<rule ref="Generic.Classes.DuplicateClassName" />
<rule ref="Generic.CodeAnalysis.EmptyStatement" />
<rule ref="Generic.CodeAnalysis.ForLoopWithTestFunctionCall" />
<rule ref="Generic.CodeAnalysis.JumbledIncrementer" />
<rule ref="Generic.CodeAnalysis.UnconditionalIfStatement" />
<rule ref="Generic.CodeAnalysis.UnnecessaryFinalModifier" />
<rule ref="Generic.CodeAnalysis.UnusedFunctionParameter" />
<rule ref="Generic.CodeAnalysis.UselessOverridingMethod" />
<rule ref="Generic.Commenting.Fixme" />
<rule ref="Generic.Commenting.Todo" />
<rule ref="Generic.ControlStructures.InlineControlStructure" />
</ruleset>