-
Notifications
You must be signed in to change notification settings - Fork 4
GuideCodingStyle
Victor Kane edited this page Dec 17, 2013
·
5 revisions
There should be a Coding Style Guide raised as an issue or in the wiki. Drupal Lean Process provides no template since this pretty much has to be tailored on a project by project basis, each will have its own standard.
- PEAR http://pear.php.net/manual/en/standards.php
- PSR-1 http://www.php-fig.org/psr/psr-1/
- PSR-2 https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md
- Drupal specific coding standards "loosely based on PEAR" (2 spaces instead of 4, etc.)
- Wordpress http://make.wordpress.org/core/handbook/coding-standards/php/
- Zend Framework http://framework.zend.com/manual/1.12/en/coding-standard.html
- http://pear.php.net/package/PHP_CodeSniffer/redirected
- PHP Coding Standards Fixer http://cs.sensiolabs.org/
- Drupal Coder module https://drupal.org/project/coder extended by Coder Tough Love https://drupal.org/project/coder_tough_love
- Good intro article http://coding.smashingmagazine.com/2012/10/25/why-coding-style-matters/
- Excellent Javascript style guide overview and detailed instructions by Addy Osmani http://addyosmani.com/blog/javascript-style-guides-and-beautifiers/
- Google style guides: https://code.google.com/p/google-styleguide/
- GitHub Style Guide (Ruby, HTML, CSS and JavaScript): https://github.com/styleguide/
- jQuery style guide http://docs.jquery.com/JQuery_Core_Style_Guidelines