Skip to content
Snippets Groups Projects
Commit 5a602de9 authored by Íñigo Huguet's avatar Íñigo Huguet Committed by Masahiro Yamada
Browse files

Add .editorconfig file for basic formatting

EditorConfig is a specification to define the most basic code formatting
stuff, and it's supported by many editors and IDEs, either directly or
via plugins, including VSCode/VSCodium, Vim, emacs and more.

It allows to define formatting style related to indentation, charset,
end of lines and trailing whitespaces. It also allows to apply different
formats for different files based on wildcards, so for example it is
possible to apply different configs to *.{c,h}, *.py and *.rs.

In linux project, defining a .editorconfig might help to those people
that work on different projects with different indentation styles, so
they cannot define a global style. Now they will directly see the
correct indentation on every fresh clone of the project.

See https://editorconfig.org



Co-developed-by: default avatarDanny Lin <danny@kdrag0n.dev>
Signed-off-by: default avatarDanny Lin <danny@kdrag0n.dev>
Signed-off-by: default avatarÍñigo Huguet <ihuguet@redhat.com>
Acked-by: default avatarMickaël Salaün <mic@digikod.net>
Reviewed-by: default avatarVincent Mailhol <mailhol.vincent@wanadoo.fr>
Tested-by: default avatarVincent Mailhol <mailhol.vincent@wanadoo.fr>
Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
parent ac14947c
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment