Skip to content

Commit

Permalink
Nette entrypoint provider (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
janedbal authored Sep 2, 2024
1 parent bf2981b commit 5b1adcb
Show file tree
Hide file tree
Showing 7 changed files with 578 additions and 27 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ includes:
## Configuration:
- All entrypoints of your code (controllers, consumers, commands, ...) need to be known to the detector to get proper results
- By default, all overridden methods which declaration originates inside `vendor` are considered entrypoints
- Also, there are some built-in providers for some magic calls that occur in `doctrine`, `symfony`, `phpstan` and `phpunit`
- Also, there are some built-in providers for some magic calls that occur in `doctrine`, `nette`, `symfony`, `phpstan` and `phpunit`
- For everything else, you can implement your own entrypoint provider, just tag it with `shipmonk.deadCode.entrypointProvider` and implement `ShipMonk\PHPStan\DeadCode\Provider\EntrypointProvider`

```neon
Expand Down
5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
"doctrine/orm": "^2.19 || ^3.0",
"editorconfig-checker/editorconfig-checker": "^10.3.0",
"ergebnis/composer-normalize": "^2.28",
"nette/application": "^3.1",
"nette/component-model": "^3.0",
"nette/utils": "^3.0 || ^4.0",
"phpstan/phpstan-phpunit": "^1.1.1",
"phpstan/phpstan-strict-rules": "^1.2.3",
"phpstan/phpstan-symfony": "^1.4",
Expand Down Expand Up @@ -74,7 +77,7 @@
"check:dependencies": "composer-dependency-analyser",
"check:ec": "ec src tests",
"check:tests": "phpunit tests",
"check:types": "phpstan analyse -vvv --ansi",
"check:types": "phpstan analyse -vv --ansi",
"fix:cs": "phpcbf"
}
}
313 changes: 305 additions & 8 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5b1adcb

Please sign in to comment.