forked from pagemachine/hairu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
57 lines (49 loc) · 2.19 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
50
51
52
53
54
55
56
57
<?xml version="1.0"?>
<ruleset>
<config name="installed_paths" value="../../cakephp/cakephp-codesniffer,../../slevomat/coding-standard"/>
<arg name="colors"/>
<arg name="extensions" value="php"/>
<arg value="ps"/>
<file>Classes</file>
<file>Configuration/TCA</file>
<file>ext_emconf.php</file>
<file>ext_localconf.php</file>
<file>ext_tables.php</file>
<rule ref="PSR2">
<exclude name="Generic.Files.LineLength"/>
</rule>
<rule ref="Generic.PHP.NoSilencedErrors">
<properties>
<property name="error" type="bool" value="true"/>
</properties>
</rule>
<rule ref="CakePHP.Commenting.DocBlockAlignment"/>
<rule ref="CakePHP.Formatting.BlankLineBeforeReturn"/>
<rule ref="CakePHP.Strings.ConcatenationSpacing"/>
<rule ref="CakePHP.WhiteSpace.EmptyLines"/>
<rule ref="SlevomatCodingStandard.Arrays.TrailingArrayComma"/>
<rule ref="SlevomatCodingStandard.ControlStructures.AssignmentInCondition"/>
<rule ref="SlevomatCodingStandard.ControlStructures.DisallowYodaComparison"/>
<rule ref="SlevomatCodingStandard.Exceptions.DeadCatch"/>
<rule ref="SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses"/>
<rule ref="SlevomatCodingStandard.Namespaces.DisallowGroupUse"/>
<rule ref="SlevomatCodingStandard.Namespaces.MultipleUsesPerLine"/>
<rule ref="SlevomatCodingStandard.Namespaces.UnusedUses"/>
<rule ref="SlevomatCodingStandard.Namespaces.UseDoesNotStartWithBackslash"/>
<rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes">
<properties>
<property name="newlinesCountBetweenOpenTagAndDeclare" type="int" value="1"/>
</properties>
<exclude-pattern>Configuration/TCA/*.php</exclude-pattern>
<exclude-pattern>ext_*.php</exclude-pattern>
</rule>
<rule ref="SlevomatCodingStandard.TypeHints.LongTypeHints"/>
<rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHintSpacing"/>
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHintSpacing"/>
<rule ref="SlevomatCodingStandard.Types.EmptyLinesAroundTypeBraces">
<properties>
<property name="linesCountAfterOpeningBrace" type="int" value="0"/>
<property name="linesCountBeforeClosingBrace" type="int" value="0"/>
</properties>
</rule>
</ruleset>