![]() |
looking for a guide of coding style - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: looking for a guide of coding style (/showthread.php?tid=4189) |
looking for a guide of coding style - El Forum - 11-12-2007 [eluser]Unknown[/eluser] We will start a new proyect based in CI. To facilitate the work of the team, I am looking for an standard to use in our Coding conventions and Documentation. What guide of coding style is recomended to programing with CodeIgniter? looking for a guide of coding style - El Forum - 11-12-2007 [eluser]xwero[/eluser] Derek Allard blog post looking for a guide of coding style - El Forum - 11-12-2007 [eluser]blackarma[/eluser] Another good coding standard : PEAR looking for a guide of coding style - El Forum - 11-13-2007 [eluser]Unknown[/eluser] Thanks for your recomendations. I think than we will follow Derek's doc looking for a guide of coding style - El Forum - 07-12-2011 [eluser]thomas.ernest[/eluser] It's better to have a tool to automatically check if your files match the requirements of a coding convention. I use PHP_CodeSniffer [phpcs] for that. However, it doesn't support Code Igniter style guide [ci-style] natively. So, I've developed something. It doesn't check all standard requirements, but already more than nothing. Feel free to give a try and share your feedbacks. [phpcs] http://pear.php.net/package/PHP_CodeSniffer/ [ci-style] http://ellislab.com/codeigniter/user-guide/general/styleguide.html [ci4php-cs] https://github.com/thomas-ernest/CodeIgniter-for-PHP_CodeSniffer |