2020-10-02 11:41:24 +01:00
|
|
|
# phpcbf
|
|
|
|
|
|
|
|
> Fix violations detected by phpcs.
|
|
|
|
> More information: <https://github.com/squizlabs/PHP_CodeSniffer>.
|
|
|
|
|
|
|
|
- Fix issues in the specified directory (defaults to the PEAR standard):
|
|
|
|
|
|
|
|
`phpcbf {{path/to/directory}}`
|
|
|
|
|
|
|
|
- Display a list of installed coding standards:
|
|
|
|
|
|
|
|
`phpcbf -i`
|
|
|
|
|
|
|
|
- Specify a coding standard to validate against:
|
|
|
|
|
|
|
|
`phpcbf {{path/to/directory}} --standard {{standard}}`
|
|
|
|
|
2020-10-05 14:35:06 +01:00
|
|
|
- Specify comma-separated file extensions to include when sniffing:
|
2020-10-02 11:41:24 +01:00
|
|
|
|
2024-01-31 03:55:19 +00:00
|
|
|
`phpcbf {{path/to/directory}} --extensions {{file_extension1,file_extension2,...}}`
|
2020-10-02 11:41:24 +01:00
|
|
|
|
|
|
|
- A comma-separated list of files to load before processing:
|
|
|
|
|
2024-01-31 03:55:19 +00:00
|
|
|
`phpcbf {{path/to/directory}} --bootstrap {{path/to/file1,path/to/file2,...)}}`
|
2020-10-02 11:41:24 +01:00
|
|
|
|
|
|
|
- Don't recurse into subdirectories:
|
|
|
|
|
|
|
|
`phpcbf {{path/to/directory}} -l`
|