Welcome Guest, Not a member yet? Register   Sign In
what code formatting tool does CodeIgniter use to style/format its code?
#1

[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?
#2

[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.ph...niffer.php
[2] http://ellislab.com/codeigniter/user-gui...guide.html
[3] http://www.waterproof.fr/products/phpCodeBeautifier/
#3

[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.
#4

[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/CodeIgn...odeSniffer
[2] http://ellislab.com/forums/viewthread/180084/
#5

[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!
#6

[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.




Theme © iAndrew 2016 - Forum software by © MyBB