Re: [PATCH v2] editorconfig: Add automatic editor configuration file

From: Jonathan Corbet
Date: Fri Jul 03 2020 - 08:29:52 EST


On Fri, 3 Jul 2020 00:31:43 -0700
Danny Lin <danny@xxxxxxxxxxx> wrote:

> EditorConfig is a standard for defining basic editor configuration in
> projects. There is support available for 47 code editors as of writing,
> including both built-in and extension support. Many notable projects
> have adopted the standard already, including zsh, htop, and qemu.
>
> While this isn't a full-fledged C code style specifier, it does set some
> basic ground rules that make it more convenient for contributors to use
> any editor of their choice and not have to worry about indentation, line
> endings, encoding, final newlines, etc. This should make it
> significantly easier to conform to the kernel's general code style when
> used in combination with clang-format.
>
> For more information, check the official EditorConfig website:
> https://editorconfig.org/
>
> Signed-off-by: Danny Lin <danny@xxxxxxxxxxx>
> ---

So I worry a bit that not everybody will welcome the addition of a dotfile
that may be magically interpreted by their editor. I also worry that the
file itself could become a battleground for people wanting to argue about
style issues.

Perhaps I worry a bit too much...?

jon