PHP CodeSniffer
Do more with PHP CodeSniffer
Buddy CI/CD allows you to instantly implement PHP CodeSniffer with 150+ ready to use actions to automate your development and build better apps faster.
Use PHP CodeSniffer in Buddy CI/CDPHP CodeSniffer - Features, integrations, alternatives & more
What it does
This action runs PHP CodeSniffer that tokenizes PHP, JavaScript and CSS files to detect and fix violations of a defined set of coding standards.
How it works
This action launches a Docker container using the official PHP image with preinstalled PHP CodesSniffer and runs phpcbf on the source code pulled from the repository to the pipeline filesystem.
Action preview
Image loading...
PHP CodeSniffer Action Features
- Available coding standards: MySource, PEAR, PHPCS, PSR1, PSR2, Squiz and Zend
- More options: here
- The action can be ran in two modes: analyze code or analyze and fix issues automatically. The fixes will be applied only in the source code pulled into the pipeline filesystem - they won’t be pushed to the repository
- The action supports conditional execution: it can be run on each execution, only if there are changes in the repository or specific paths since last execution or if an environment variable has a specific value
- Exit code handling: you can either stop the commands if any of them throws an error or run the following commands regardless of the result ot previous command
- Handling failures: you can either stop the execution, mark action and pipeline as failed or proceed the execution, mark action as warning and jump to the next action
Do more with PHP CodeSniffer
Buddy allows you to instantly connect PHP CodeSniffer with 150+ actions to automate your development and build better apps faster.
Connect PHP CodeSniffer to 150+ dev tools1 - 3 (of 160)