Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement EditorConfig #89

Open
tejasmanohar opened this issue Feb 28, 2015 · 5 comments
Open

implement EditorConfig #89

tejasmanohar opened this issue Feb 28, 2015 · 5 comments
Labels

Comments

@tejasmanohar
Copy link
Contributor

http://editorconfig.org/

thoughts, @d11wtq? this instead of the vim comments, those are too specific for a project used by so many people

@tejasmanohar
Copy link
Contributor Author

Also, why be forced to 2/4 spaces of indentation when a tab can be dynamically set?

@bobthecow
Copy link

Because it doesn't really matter which you choose, as long as you choose one. By and large, PHP projects have settled on four spaces. There's a lot to be said for not picking something different, especially if you value contributors :)

@dhotson
Copy link
Contributor

dhotson commented Mar 1, 2015

Nearly all modern PHP projects use the PSR2 standard.
https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md

There are a number of tools around that'll check (and even fix) code in this style automatically. e.g. http://cs.sensiolabs.org/

@tejasmanohar
Copy link
Contributor Author

Got it!

@tejasmanohar
Copy link
Contributor Author

Back to the point...

http://editorconfig.org/
thoughts, @d11wtq? this instead of the vim comments, those are too specific for a project used by so many people

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants