threads / discuss / 31602

Add .editorconfig file to source repository to maintain a consistent coding style

Subject: Add .editorconfig file to source repository to maintain a consistent coding style

## tl;dr

2 messages between Sep 19, 2012 and Sep 19, 2012.

replies: 1people: 2as markdown or json

Hong Xu· Sep 19, 2012, 07:31 UTC · lore
Hi all,
EditorConfig <http://editorconfig.org> is a project that helps developers define and maintain consistent coding styles between different editors and IDEs. The EditorConfig project consists of a file format for defining coding styles and a collection of text editor plugins that enable editors to read the file format and adhere to defined styles. EditorConfig files are easily readable and they work nicely with version control systems.
EditorConfig has been used in many large and famous projects, such as Ruby, jQuery, etc. I think the Git community may also find it useful, since there are some inconsistent indentation in the source code. 
What do you think about this?

Best, Hong

Junio C Hamano· Sep 19, 2012, 17:43 UTC · re: Hong Xu · lore

Re: Add .editorconfig file to source repository to maintain a consistent coding style

Hong Xu <dev@hong.me> writes:
> EditorConfig has been used in many large and famous projects, such
> as Ruby, jQuery, etc.

I see jQuery swallowed it and has been using it for 6 months, but citing Ruby as an example makes you look somewhat dishonest. As far as I can see, they just added one a few days ago, which means they haven't had a chance to evaluate how it affects their developer's workflow and possibly realize that it is bad for their project and revert it, or find it very useful and give a raving blog about it.

Throwing [Ruby EditorConfig] at my search engine gives mostly what you wrote and not much else, so it does not help me to judge the merit of using it objectively, either.

I dunno.

← back to recent threads