snippetbashTip
phpcbf — Fix violations detected by phpcs. More information: <https://github.com/squizlabs/PHP_CodeSniffer>.
Viewed 0 times
violationscommandfixphpcscliphpcbfmoredetected
Problem
How to use the
phpcbf command: Fix violations detected by phpcs. More information: <https://github.com/squizlabs/PHP_CodeSniffer>.Solution
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 -iSpecify a coding standard to validate against:
phpcbf {{path/to/directory}} --standard {{standard}}Specify comma-separated file extensions to include when sniffing:
phpcbf {{path/to/directory}} --extensions {{file_extension1,file_extension2,...}}A comma-separated list of files to load before processing:
phpcbf {{path/to/directory}} --bootstrap {{path/to/file1,path/to/file2,...}}Don't recurse into subdirectories:
phpcbf {{path/to/directory}} -lCode Snippets
Fix issues in the specified directory (defaults to the PEAR standard)
phpcbf {{path/to/directory}}Display a list of installed coding standards
phpcbf -iSpecify a coding standard to validate against
phpcbf {{path/to/directory}} --standard {{standard}}Specify comma-separated file extensions to include when sniffing
phpcbf {{path/to/directory}} --extensions {{file_extension1,file_extension2,...}}A comma-separated list of files to load before processing
phpcbf {{path/to/directory}} --bootstrap {{path/to/file1,path/to/file2,...}}Context
tldr-pages: common/phpcbf
Revisions (0)
No revisions yet.