Skip to content

Commit

Permalink
Add new PSR4 sniff (#34)
Browse files Browse the repository at this point in the history
* Add new PSR4 sniff
  • Loading branch information
dereuromark authored Mar 29, 2024
1 parent 2534f75 commit c9e4659
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 @@ -114,6 +114,7 @@
<rule ref="SlevomatCodingStandard.ControlStructures.DisallowYodaComparison"/>
<rule ref="SlevomatCodingStandard.ControlStructures.JumpStatementsSpacing"/>

<rule ref="PhpCollective.Classes.Psr4"/>
<rule ref="PhpCollective.Classes.MethodDeclaration"/>
<rule ref="PhpCollective.Classes.MethodArgumentDefaultValue"/>
<rule ref="PhpCollective.Classes.MethodTypeHint"/>
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
],
"require": {
"php": ">=8.1",
"php-collective/code-sniffer": "^0.2",
"php-collective/code-sniffer": "^0.2.6",
"slevomat/coding-standard": "^8.3.0",
"squizlabs/php_codesniffer": "^3.7.0"
},
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 190 sniffs
The PSR2R standard contains 191 sniffs

Generic (22 sniffs)
-------------------
Expand Down Expand Up @@ -33,13 +33,14 @@ PEAR (3 sniffs)
- PEAR.Functions.ValidDefaultValue
- PEAR.NamingConventions.ValidClassName

PhpCollective (38 sniffs)
PhpCollective (39 sniffs)
-------------------------
- PhpCollective.Classes.ClassFileName
- PhpCollective.Classes.MethodArgumentDefaultValue
- PhpCollective.Classes.MethodDeclaration
- PhpCollective.Classes.MethodTypeHint
- PhpCollective.Classes.PropertyDefaultValue
- PhpCollective.Classes.Psr4
- PhpCollective.Classes.ReturnTypeHint
- PhpCollective.Classes.SelfAccessor
- PhpCollective.Commenting.Attributes
Expand Down

0 comments on commit c9e4659

Please sign in to comment.