#Bolt coding style standard
Bolt tries to adhere a coding style based on PSR-2 and the Symfony2 coding standard. To help following our standard a ruleset for PHP_CodeSniffer is provided.
This standard is a work in progress and will be refined over time!
##Usage
###Installation
- Install/update using composers --require-dev command
- Install PHP_CodeSniffer or use the one that is installed with compooser
- Start phpcs with --standard Bolt /CodeSniffer/Bolt
###Run
phpcs --standard Bolt /CodeSniffer/Bolt
As of 8.0 there's no way to specify standards-path directly. You would have to copy over Bolt and Symfony2 standards directory by hand and would have to adjust the path to the Symfony2 ruleset inside Bolt ruleset.
Specify the path to standards directory /CodeSniffer/Bolt in Options / PHP / PHPCSMD "--standard".
See the manual of your editor if it supports PHP_CodeSniffer and how to use it.