Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter 3 PHP CodeSniffer
#6

(07-28-2016, 02:28 AM)Narf Wrote:
(07-27-2016, 09:59 AM)mwhitney Wrote: I'm not aware of any significant changes to the style guide for CI3 vs. CI2, except that you need to check for ucfirst file/class names on most of the classes.

Which is a functional requirement and not just a styleguide change.

You don't need to follow our styleguide in order to run CI.

I agree, especially since I only follow CI's style guide when I'm writing something I intend to submit to CI. However, it's much easier to do that if I have CodeSniffer configured properly, since my editor is configured to run it every time I save a file.

Although it is a functional requirement rather than a style guide change, CodeSniffer can be configured to check the file/class name to remind you of the functional requirement, so you don't go through the additional steps of attempting to load the page in your dev environment before discovering that you missed the shift key when you typed the file/class name.
Reply


Messages In This Thread
CodeIgniter 3 PHP CodeSniffer - by versalle88 - 07-26-2016, 08:34 AM
RE: CodeIgniter 3 PHP CodeSniffer - by Narf - 07-27-2016, 05:05 AM
RE: CodeIgniter 3 PHP CodeSniffer - by versalle88 - 07-27-2016, 07:31 AM
RE: CodeIgniter 3 PHP CodeSniffer - by mwhitney - 07-27-2016, 09:59 AM
RE: CodeIgniter 3 PHP CodeSniffer - by Narf - 07-28-2016, 02:28 AM
RE: CodeIgniter 3 PHP CodeSniffer - by mwhitney - 07-28-2016, 09:31 AM



Theme © iAndrew 2016 - Forum software by © MyBB