forked from Saritasa/php-roles-simple
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpcs.xml
33 lines (29 loc) · 1.46 KB
/
phpcs.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?xml version="1.0"?>
<ruleset name="PHP_CodeSniffer">
<description>The for Saritasa package</description>
<file>src</file>
<exclude-pattern>*.json</exclude-pattern>
<exclude-pattern>*.xml</exclude-pattern>
<arg name="colors"/>
<arg value="p"/>
<rule ref="PSR2"/>
<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>