forked from skaut/SRS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpcs.xml
49 lines (38 loc) · 1.84 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
44
45
46
47
48
49
<?xml version="1.0"?>
<ruleset>
<arg name="basepath" value="."/>
<arg name="extensions" value="php"/>
<arg name="parallel" value="80"/>
<arg name="cache" value="temp/.phpcs-cache"/>
<arg name="colors"/>
<!-- Ignore warnings, show progress of the run and show sniff names -->
<arg value="nps"/>
<file>app</file>
<file>tests</file>
<file>migrations</file>
<exclude-pattern>tests/_*</exclude-pattern>
<rule ref="Doctrine">
<!-- Chybejici typehints zatim nelze doplnit u flashMessage -->
<exclude name="SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint"/>
<!-- Zneprehlednuje kod -->
<exclude name="SlevomatCodingStandard.ControlStructures.EarlyExit"/>
<!-- Docasne ignorovano, dokud nebudou vytvoreny lepsi vyjimky -->
<exclude name="SlevomatCodingStandard.Classes.SuperfluousExceptionNaming.SuperfluousSuffix"/>
<!-- Docasne ignorovano, pro porovnavani objektu (DateTime) neni strict zadouci -->
<exclude name="SlevomatCodingStandard.Operators.DisallowEqualOperators.DisallowedEqualOperator"/>
<exclude name="SlevomatCodingStandard.Operators.DisallowEqualOperators.DisallowedNotEqualOperator"/>
<!-- Ublaboo datagrid sort -->
<exclude name="Squiz.NamingConventions.ValidVariableName.NotCamelCaps"/>
<!-- skautIS property -->
<exclude name="Squiz.NamingConventions.ValidVariableName.MemberNotCamelCaps"/>
</rule>
<!-- Metoda _before v testech -->
<rule ref="PSR2.Methods.MethodDeclaration.Underscore">
<exclude-pattern>/tests/*</exclude-pattern>
</rule>
<rule ref="SlevomatCodingStandard.Variables.UnusedVariable">
<properties>
<property name="ignoreUnusedValuesWhenOnlyKeysAreUsedInForeach" value="true"/>
</properties>
</rule>
</ruleset>