-
Notifications
You must be signed in to change notification settings - Fork 34
Code Standards Etc.
Zachary Berry edited this page Oct 23, 2015
·
3 revisions
Our code standards generally follow a modified version of FuelPHP's standards as of version 1.7
We have a custom php code sniffer standard here: https://github.com/ucfcdl/fuelphp-phpcs
phpcs -d memory_limit=256M --standard=FuelPHP --ignore=fuel/core,fuel/app/config,fuel/app/view,fuel/packages/auth,fuel/packages/email,fuel/packages/oil,fuel/packages/orm,fuel/packages/parser,fuel/packages/plupload,fuel/vendor,node_modules,spec,src,static,fuel/packages/materia/vendor,fuel/app/migrations,tests --extensions=php ./
- Install Sublime Package Control if you don't have it already
- Install the 'Phpcs' package
- Open the 'PHP Code Sniffer' default settings, copy them, and paste them into the 'PHP Code Sniffer' user settings
- Set
php_executable_path
to the output you get when runningwhich phpcs
- Set
phpcs_additional_args
--standard
toFuelPHP
tbd
tbd