phpcs

phpcs

TLDR

Sniff the specified directory for issues (defaults to the PEAR standard)

>_ phpcs [path/to/directory]
copy

Display a list of installed coding standards

>_ phpcs -i
copy

Specify a coding standard to validate against

>_ phpcs [path/to/directory] --standard [standard]
copy

Specify file extension(s) to include when sniffing

>_ phpcs [path/to/directory] --extensions [file_extension(s)]
copy

Specify the format of the output report (e.g. full, xml, json, summary)

>_ phpcs [path/to/directory] --report [format]
copy

Set config variables to be used during the process

>_ phpcs [path/to/directory] --config-set [key] [value]
copy

A comma-separated list of files to load before processing

>_ phpcs [path/to/directory] --bootstrap [file(s)]
copy

Don't recurse into subdirectories

>_ phpcs [path/to/directory] -l
copy

Copied to clipboard
free 100$ digital ocean credit