Skip to content

Commit 9eb4156

Browse files
committed
Let's run the Dead Code Detector as part of the main PHPStan run to save some config files
Follow-up to #332
1 parent a24bb8f commit 9eb4156

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

phpstan.neon

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,23 @@ parameters:
1919
- tests/src
2020
bootstrapFiles:
2121
- phpstan-attributes.php
22+
ignoreErrors:
23+
-
24+
identifier: shipmonk.deadMethod # Used in extension.neon
25+
paths:
26+
- src/DisallowedSuperglobalFactory.php
27+
- src/DisallowedControlStructureFactory.php
28+
shipmonkDeadCode:
29+
usageExcluders:
30+
tests:
31+
enabled: true
2232

2333
includes:
2434
- phpstan-exclude-paths.php
2535
- phpstan-ignore-errors.php
2636
- vendor/phpstan/phpstan/conf/bleedingEdge.neon
2737
- vendor/phpstan/phpstan-deprecation-rules/rules.neon
38+
- vendor/shipmonk/dead-code-detector/rules.neon
2839
- extension.neon
2940
- disallowed-dangerous-calls.neon
3041
- disallowed-execution-calls.neon

0 commit comments

Comments
 (0)