New action: PHP_CodeSniffer

New action: PHP_CodeSniffer

January 10, 2018

PHP_CodeSniffer is a nifty little tool that lets you detect and fix code violations in PHP, JS and CSS files so that you can upkeep the high quality of your code.

The tool is best used as the final touch before the deployment:

PHP CodeSniffer action detailsPHP CodeSniffer action details

It supports MySource, PEAR, PHPCS, PSR1, PSR2, Squiz and Zend code standards. Two scripts can be used in the action:

  • phpcs – tokenizes files the files to detect the violations
  • phbcbf – automatically detects and corrects the errors (default)

Pipeline examplePipeline example

WARNING: Can't see integration with the service that you use? Drop a line to support@buddy.works with your use case and we'll add it to our to-do list.

Share

About the Author
Alexander Kus

Alexander Kus

Customer Success Manager

A story-teller and conversation-lover, Alexander decided to invest his skills to help his friends at Buddy transform the cold language of patch notes into exciting narratives. Also: an avid gamer, hip-hop DJ, Liverpool FC fan, absentminded husband, and the father of two.

Buddy Makes Developers Happier

You use lots of tools to get web & app development done. Buddy creates more time in your day by helping you automate those tools.

Sign up for free with