This repository was archived by the owner on Aug 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathphpcs.xml
43 lines (39 loc) · 1.88 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
34
35
36
37
38
39
40
41
42
43
<?xml version="1.0"?>
<ruleset name="PHP_CodeSniffer">
<description>The for Saritasa package</description>
<file>src</file>
<file>tests</file>
<exclude-pattern>*.json</exclude-pattern>
<exclude-pattern>*.xml</exclude-pattern>
<arg name="colors"/>
<arg value="p"/>
<rule ref="PSR2">
<exclude-pattern>*/src/Api/ApiResourceRegistrar.php</exclude-pattern>
<exclude-pattern>*/src/Web/WebResourceRegistrar.php</exclude-pattern>
</rule>
<rule ref="PSR1.Classes.ClassDeclaration.MissingNamespace">
<exclude-pattern>*/database/*</exclude-pattern>
</rule>
<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">
<exclude-pattern>*/src/Router.php</exclude-pattern>
</rule>
<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">
<exclude-pattern>*/src/Api/ResetPasswordApiController.php</exclude-pattern>
<exclude-pattern>*/src/Api/ForgotPasswordApiController.php</exclude-pattern>
</rule>
<rule ref="Generic.CodeAnalysis.UselessOverridingMethod" />
<rule ref="Generic.Commenting.Fixme" />
<rule ref="Generic.Commenting.Todo" />
</ruleset>