johnblackmore / codesniffer-standard

PHP_Codesniffer standard

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crowdcube Codesniffer Standard

Circle CI

This is our work-in-progress PHP_Codesniffer standard for validating the PHP code that we write.

It currently does not check/enforce all, but serves as a good first check to the Crowdcube coding standard. The remaining checks will be picked up in code review.

Installation

Add the following to your composer.json require and update:

"crowdcube/codesniffer-standard": "0.3.*"

Checking

When running ./vendor/bin/phpcs from your project, set the standard as follows:

--standard=vendor/crowdcube/codesniffer/Crowdcube

About

PHP_Codesniffer standard

License:MIT License


Languages

Language:XML 100.0%