Skip to content

Code Standards Etc.

Zachary Berry edited this page Oct 23, 2015 · 3 revisions

PHP

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

Notes and random stuff

PHPCS command for scanning everything

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 ./

Sublime Text Integration

  • 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 running which phpcs
  • Set phpcs_additional_args --standard to FuelPHP

CoffeeScript

tbd

SASS

tbd