Skip to content

Commit 1fc5fcd

Browse files
authored
Merge pull request #19 from peckadesign/dead-code
Pravidla pro detekci mrtvého kódu
2 parents a66fede + b066607 commit 1fc5fcd

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

src/PeckaCodingStandard/ruleset.xml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
11
<?xml version="1.0" ?>
22
<ruleset name="PeckaDesign">
33

4+
<config name="installed_paths" value="../../slevomat/coding-standard"/>
5+
46
<!-- Arrays -->
5-
<rule ref="../../../../slevomat/coding-standard/SlevomatCodingStandard/Sniffs/Arrays/TrailingArrayCommaSniff.php"/>
7+
<rule ref="SlevomatCodingStandard.Arrays.TrailingArrayComma"/>
68

79
<!-- Classes -->
810
<rule ref="Generic.Classes.DuplicateClassName"/>
911
<rule ref="Squiz.Classes.LowercaseClassKeywords"/>
10-
<rule ref="../../../../slevomat/coding-standard/SlevomatCodingStandard/Sniffs/Classes/ClassConstantVisibilitySniff.php"/>
12+
<rule ref="SlevomatCodingStandard.Classes.ClassConstantVisibility"/>
13+
<rule ref="SlevomatCodingStandard.Classes.UnusedPrivateElements"/>
1114

15+
<!-- Exceptions -->
16+
<rule ref="SlevomatCodingStandard.Exceptions.DeadCatch"/>
17+
1218
<!-- Files -->
1319
<rule ref="Generic.Files.ByteOrderMark"/>
1420
<rule ref="Generic.Files.LineEndings"/>
@@ -18,6 +24,14 @@
1824
<!-- Functions -->
1925
<rule ref="Squiz.Functions.LowercaseFunctionKeywords"/>
2026

27+
<!-- Namespaces -->
28+
<rule ref="SlevomatCodingStandard.Namespaces.UnusedUses">
29+
<properties>
30+
<property name="searchAnnotations" value="1"/>
31+
</properties>
32+
</rule>
33+
<rule ref="SlevomatCodingStandard.Namespaces.UseFromSameNamespace"/>
34+
2135
<!-- NamingConventions -->
2236
<rule ref="Generic.NamingConventions.UpperCaseConstantName"/>
2337
<rule ref="Generic.NamingConventions.CamelCapsFunctionName">
@@ -35,7 +49,6 @@
3549
<rule ref="Generic.WhiteSpace.DisallowSpaceIndent"/>
3650
<rule ref="Squiz.ControlStructures.ControlSignature"/>
3751
<rule ref="Generic.Formatting.SpaceAfterCast"/>
38-
<rule ref="../../../../slevomat/coding-standard/SlevomatCodingStandard/Sniffs/TypeHints/ParameterTypeHintSpacingSniff.php"/>
52+
<rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHintSpacing"/>
3953

4054
</ruleset>
41-

0 commit comments

Comments
 (0)