CodeIgniter Forums
what code formatting tool does CodeIgniter use to style/format its code? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter Archived (from EllisLab) (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: what code formatting tool does CodeIgniter use to style/format its code? (/thread-37947.html)



what code formatting tool does CodeIgniter use to style/format its code? - El Forum - 01-25-2011

[eluser]diez[/eluser]
what code formatting tool does CodeIgniter use to style/format its code?

Or do the developers manually maintain the code format on the fly?


what code formatting tool does CodeIgniter use to style/format its code? - El Forum - 01-31-2011

[eluser]thomas.ernest[/eluser]
I'm not a member of Ellislab, so I don't know what are the formatting tools or syntax checkers used within the company.

I'm used to check my code with PHP_CodeSniffer [1] for several months. I started developing CodeIgniter Style Guide [2] for PHP_CodeSniffer, since I had not found any implementation though there are implementations for PEAR and Zend among few others.

I would like to share my implementation with CodeIgniter Community. How should I do so ?

I also heart about phpCodeBeautifier [3], but I have never used it. I cannot tell what the pros and cons are...

[1] http://pear.php.net/manual/en/package.php.php-codesniffer.php
[2] http://ellislab.com/codeigniter/user-guide/general/styleguide.html
[3] http://www.waterproof.fr/products/phpCodeBeautifier/


what code formatting tool does CodeIgniter use to style/format its code? - El Forum - 02-03-2011

[eluser]bradym[/eluser]
I'm very interested in seeing/stealing your sniffer for the CodeIgniter style guide. With CI now being hosted on BitBucket, I'd recommend putting it up there and then linking to it from this thread and also from the wiki.


what code formatting tool does CodeIgniter use to style/format its code? - El Forum - 02-03-2011

[eluser]thomas.ernest[/eluser]
I already put my code at GitHub [1] few days ago.
I don't know BitBucket, but if you point me to some documentation, I could share it on BitBucket too. However, you need to know that code (repository) duplication is none of my habits.

I open a new thread [2] in category "Ignited Code" to respect forum classification. Please post on this new thread [2], if you want to talk about improving or using this tool.

I guess we should wait a more stable version, before putting a link in the wiki. Nonetheless, I didn't think about it, thank you for the idea.

Cheers,
Thomas.

[1] https://github.com/thomas-ernest/CodeIgniter-for-PHP_CodeSniffer
[2] http://ellislab.com/forums/viewthread/180084/


what code formatting tool does CodeIgniter use to style/format its code? - El Forum - 02-03-2011

[eluser]bradym[/eluser]
Yeah, with it on GitHub already there's no reason to put it on BitBucket too.

Looks like a great start, I'll be playing around with it this weekend, maybe look into helping you knock out some of the todo items in the code.

Thanks for sharing!


what code formatting tool does CodeIgniter use to style/format its code? - El Forum - 02-04-2011

[eluser]thomas.ernest[/eluser]
Right. I read a bit more about BitBucket. I hope GitHub will be enough.

It may always remain some errors in my code. Feel free to ask for help or for details about weird behaviours (I don't know it may happen). I'll try to give you my email via CodeIgniter forum emailing service.

Have a nice week-end Wink
Thomas.