-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathphpcs.xml
More file actions
62 lines (56 loc) · 2.61 KB
/
Copy pathphpcs.xml
File metadata and controls
62 lines (56 loc) · 2.61 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="artwork-rules">
<description>Ruleset for the artwork project</description>
<!-- Files/Directories to check -->
<file>app</file>
<file>artwork</file>
<file>tests/Unit</file>
<file>config</file>
<file>database</file>
<file>routes</file>
<!-- Excluded files/directories -->
<exclude-pattern>./config/debugbar.php</exclude-pattern>
<exclude-pattern>./database/migrations/</exclude-pattern>
<exclude-pattern>storage/</exclude-pattern>
<exclude-pattern>vendor/</exclude-pattern>
<exclude-pattern>node_modules/</exclude-pattern>
<exclude-pattern>**/*.js</exclude-pattern>
<exclude-pattern>**/*.vue</exclude-pattern>
<!-- PSR standard -->
<rule ref="PSR12">
<exclude name="PSR12.Classes.OpeningBraceSpace" />
</rule>
<!-- Laravel coding style -->
<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="120" />
<property name="absoluteLineLimit" value="120" />
</properties>
</rule>
<!-- SlevomatCodingStandard rules -->
<rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint" />
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingNativeTypeHint" />
<rule ref="SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingNativeTypeHint" />
<rule ref="SlevomatCodingStandard.Classes.PropertyDeclaration.Scope" />
<rule ref="SlevomatCodingStandard.Classes.SuperfluousAbstractClassNaming" />
<!-- Additional rules -->
<rule ref="Generic.Classes.DuplicateClassName"/>
<rule ref="Generic.CodeAnalysis.EmptyStatement"/>
<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.UnusedFunctionParameter"/>
<rule ref="Generic.CodeAnalysis.UselessOverridingMethod"/>
<rule ref="Generic.ControlStructures.InlineControlStructure"/>
<rule ref="Generic.Formatting.DisallowMultipleStatements"/>
<rule ref="Generic.Metrics.CyclomaticComplexity"/>
<rule ref="Generic.Metrics.NestingLevel"/>
<rule ref="Generic.PHP.DeprecatedFunctions"/>
<rule ref="Generic.PHP.DisallowShortOpenTag"/>
<rule ref="Generic.PHP.NoSilencedErrors"/>
<rule ref="MySource.PHP.EvalObjectFactory"/>
<rule ref="PEAR.Classes.ClassDeclaration"/>
<rule ref="Squiz.PHP.Eval"/>
</ruleset>