Skip to content

Commit

Permalink
Add new trailing comma sniff
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Aug 15, 2022
1 parent bee498a commit e2aab72
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions PSR2R/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@

<rule ref="SlevomatCodingStandard.Functions.ArrowFunctionDeclaration"/>
<rule ref="SlevomatCodingStandard.Functions.RequireTrailingCommaInCall"/>
<rule ref="SlevomatCodingStandard.Functions.RequireTrailingCommaInClosureUse"/>

<rule ref="Spryker.Commenting.DisallowArrayTypeHintSyntax"/>
<rule ref="Spryker.Commenting.TypeHint"/>
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"require": {
"php": ">=7.3",
"spryker/code-sniffer": "^0.17.1",
"slevomat/coding-standard": "^7.0.1 || ^8.3.0",
"slevomat/coding-standard": "^7.2.0 || ^8.3.0",
"squizlabs/php_codesniffer": "^3.7.0"
},
"require-dev": {
Expand Down
5 changes: 3 additions & 2 deletions docs/sniffs.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# PSR2R Code Sniffer

The PSR2R standard contains 186 sniffs
The PSR2R standard contains 187 sniffs

Generic (22 sniffs)
-------------------
Expand Down Expand Up @@ -105,7 +105,7 @@ PSR2R (44 sniffs)
- PSR2R.WhiteSpace.TabIndent
- PSR2R.WhiteSpace.UnaryOperatorSpacing

SlevomatCodingStandard (40 sniffs)
SlevomatCodingStandard (41 sniffs)
----------------------------------
- SlevomatCodingStandard.Arrays.DisallowImplicitArrayCreation
- SlevomatCodingStandard.Arrays.MultiLineArrayEndBracketPlacement
Expand All @@ -128,6 +128,7 @@ SlevomatCodingStandard (40 sniffs)
- SlevomatCodingStandard.Exceptions.DeadCatch
- SlevomatCodingStandard.Functions.ArrowFunctionDeclaration
- SlevomatCodingStandard.Functions.RequireTrailingCommaInCall
- SlevomatCodingStandard.Functions.RequireTrailingCommaInClosureUse
- SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses
- SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly
- SlevomatCodingStandard.Namespaces.RequireOneNamespaceInFile
Expand Down

0 comments on commit e2aab72

Please sign in to comment.