mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-06 03:56:08 +00:00
Move pages under tldr, lint run.sh, update docs
This commit is contained in:
37
tldr/phan
Normal file
37
tldr/phan
Normal file
@@ -0,0 +1,37 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# phan
|
||||
|
||||
> A static analysis tool for PHP.
|
||||
> More information: <https://github.com/phan/phan>.
|
||||
|
||||
- Generate a `.phan/config.php` in the current directory:
|
||||
|
||||
`phan --init`
|
||||
|
||||
- Generate a Phan configuration file using a specific level (1 being strictest to 5 being the least strict):
|
||||
|
||||
`phan --init --init-level {{level}}`
|
||||
|
||||
- Analyze the current directory:
|
||||
|
||||
`phan`
|
||||
|
||||
- Analyze one or more directories:
|
||||
|
||||
`phan --directory {{path/to/directory}} --directory {{path/to/another_directory}}`
|
||||
|
||||
- Specify a configuration file (defaults to `.phan/config.php`):
|
||||
|
||||
`phan --config-file {{path/to/config.php}}`
|
||||
|
||||
- Specify the output mode:
|
||||
|
||||
`phan --output-mode {{text|verbose|json|csv|codeclimate|checkstyle|pylint|html}}`
|
||||
|
||||
- Specify the number of parallel processes:
|
||||
|
||||
`phan --processes {{number_of_processes}}`
|
||||
Reference in New Issue
Block a user