mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 06:42:10 +02:00
phpstan: add page (#2009)
This commit is contained in:
parent
905b5b771a
commit
1eab1cf291
1 changed files with 27 additions and 0 deletions
27
pages/common/phpstan.md
Normal file
27
pages/common/phpstan.md
Normal file
|
@ -0,0 +1,27 @@
|
|||
# phpstan
|
||||
|
||||
> A PHP static analysis tool to discover bugs in code.
|
||||
|
||||
- Display available options for analysis:
|
||||
|
||||
`phpstan analyse --help`
|
||||
|
||||
- Analyse the specified space-separated directories:
|
||||
|
||||
`phpstan analyse {{path/to/directory}}`
|
||||
|
||||
- Analyse a directory using a configuration file:
|
||||
|
||||
`phpstan analyse {{path/to/directory}} --configuration {{path/to/config}}`
|
||||
|
||||
- Analyse using a specific rule level (0-7, higher is stricter):
|
||||
|
||||
`phpstan analyse {{path/to/directory}} --level {{level}}`
|
||||
|
||||
- Specify an autoload file to load before analysing:
|
||||
|
||||
`phpstan analyse {{path/to/directory}} --autoload-file {{path/to/autoload_file}}`
|
||||
|
||||
- Specify a memory limit during analysis:
|
||||
|
||||
`phpstan analyse {{path/to/directory}} --memory-limit {{memory_limit}}`
|
Loading…
Add table
Reference in a new issue