Skip to content

Commit

Permalink
Enable new shipmonk phpstan rules
Browse files Browse the repository at this point in the history
  • Loading branch information
xificurk committed Oct 23, 2022
1 parent 05e43ad commit 0e57f9b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"phpstan/phpstan-phpunit": "1.1.1",
"phpstan/phpstan-strict-rules": "1.4.4",
"spaze/phpstan-disallowed-calls": "2.5.0",
"shipmonk/phpstan-rules": "1.1.1",
"shipmonk/phpstan-rules": "1.2.0",
"phpunit/phpunit": "^8.5.21 || ^9.5.10"
},
"autoload": {
Expand Down
9 changes: 9 additions & 0 deletions tests/PHPStan/shipmonk.neon
Original file line number Diff line number Diff line change
@@ -1,14 +1,23 @@
rules:
- ShipMonk\PHPStan\Rule\BackedEnumGenericsRule
- ShipMonk\PHPStan\Rule\ForbidAssignmentNotMatchingVarDocRule
- ShipMonk\PHPStan\Rule\ForbidEnumInFunctionArgumentsRule
- ShipMonk\PHPStan\Rule\ForbidFetchOnMixedRule
- ShipMonk\PHPStan\Rule\ForbidMatchDefaultArmForEnumsRule
- ShipMonk\PHPStan\Rule\ForbidMethodCallOnMixedRule
- ShipMonk\PHPStan\Rule\ForbidReturnInConstructorRule
- ShipMonk\PHPStan\Rule\ForbidUnsetClassFieldRule
- ShipMonk\PHPStan\Rule\ForbidUnusedExceptionRule
- ShipMonk\PHPStan\Rule\ForbidUnusedMatchResultRule
- ShipMonk\PHPStan\Rule\ForbidVariableTypeOverwritingRule
- ShipMonk\PHPStan\Rule\RequirePreviousExceptionPassRule

services:
-
type: ShipMonk\PHPStan\Visitor\UnusedExceptionVisitor
tags:
- phpstan.parser.richParserNodeVisitor
-
class: ShipMonk\PHPStan\Visitor\UnusedMatchVisitor
tags:
- phpstan.parser.richParserNodeVisitor

0 comments on commit 0e57f9b

Please sign in to comment.