Reputation: 7906
I am starting a project with CodeIgniter framework with a team of 5 members. I have seen the coding standards document. Team will try to maintain it. But still errors may happen. Is there any tool to check the coding standards of Codeigniter and measure performance of this framework after the application is developed. Is there any rule set to be followed in Codeigniter and what documenter should be used along with codeIgniter?
Upvotes: 0
Views: 3288
Reputation: 20753
If you are absolutely want to be sure that source adheres to the style guides, you can try hook up the PHP_CodeSniffer project int your scm's (i'm sure you will use one) pre-commit
or pre-receive
hook (this is what svn/git calls it). This way you can throw back commits that doesn't go trough the style checking.
One a little less draconian way could be to set up some kind of continuous-integration server like jenkins (there's a handy template for php projects) and display some alert when codesniffer alerts style deviations.
However this will make you team to write "whatever the compiler allows" style. With genuine concern about readability and maintainability this will be all useless.
As it seems, someone already started to implement sniffer rules against codeigniter's own coding style guide, see the forum thread, and github repo.
Upvotes: 1