Skip to content

Commit fcb769f

Browse files
authored
Merge pull request #7 from peckadesign/slevomat
Přidána podpora pravidel ze Slevomatu
2 parents 2c16445 + 2f50f62 commit fcb769f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"description": "Coding standard pro PeckaDesign",
44
"require": {
55
"squizlabs/php_codesniffer": "^2.8",
6-
"php": "7.*"
6+
"php": "7.*",
7+
"slevomat/coding-standard": "2.*"
78
},
89
"license": "MIT",
910
"authors": [

src/PeckaCodingStandard/ruleset.xml

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

4+
<!-- Arrays -->
5+
<rule ref="../../../../slevomat/coding-standard/SlevomatCodingStandard/Sniffs/Arrays/TrailingArrayCommaSniff.php"/>
6+
47
<!-- Classes -->
58
<rule ref="Generic.Classes.DuplicateClassName"/>
69
<rule ref="Squiz.Classes.LowercaseClassKeywords"/>
@@ -28,7 +31,7 @@
2831
<rule ref="Generic.PHP.UpperCaseConstant"/>
2932

3033
<!-- WhiteSpace -->
31-
<rule ref="Generic.WhiteSpace.DisallowSpaceIndent"/>
34+
<rule ref="Generic.WhiteSpace.DisallowSpaceIndent"/>
3235

3336
</ruleset>
3437

0 commit comments

Comments
 (0)