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

2 messages from 2012-09-19 to 2012-09-19. Participants: Hong Xu, Junio C Hamano.
Thread: https://gitlist.dev/t/31602

## Hong Xu, 2012-09-19 07:31

Subject: Add .editorconfig file to source repository to maintain a consistent coding style
Message-ID: <64033A69-B5AA-461A-80B4-F143E4FC1614@hong.me>
URL: https://gitlist.dev/e/64033A69-B5AA-461A-80B4-F143E4FC1614%40hong.me

```
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, 2012-09-19 17:43

Subject: Re: Add .editorconfig file to source repository to maintain a consistent coding style
Message-ID: <7vmx0lhprq.fsf@alter.siamese.dyndns.org>
URL: https://gitlist.dev/e/7vmx0lhprq.fsf%40alter.siamese.dyndns.org
In-Reply-To: <64033A69-B5AA-461A-80B4-F143E4FC1614@hong.me>

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

```
