]> git.ipfire.org Git - thirdparty/iproute2.git/commit
add .editorconfig file for basic formatting
authorVincent Mailhol <mailhol.vincent@wanadoo.fr>
Sat, 16 Nov 2024 03:05:43 +0000 (12:05 +0900)
committerDavid Ahern <dsahern@kernel.org>
Sat, 23 Nov 2024 20:51:32 +0000 (20:51 +0000)
commitbf410407103fbbfe95d18195cc1172cc6f15171e
tree681c7a720da627f846d2207176e85f2820658a18
parent863c96cea49d4a873a584f63e8851e661e475835
add .editorconfig file for basic formatting

EditorConfig is a specification to define the most basic code formatting
stuff, and it is 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 configurations to *.{c,h}, *.json or *.yaml.

In linux related projects, defining a .editorconfig might help 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.

Add the .editorconfig file at the root of the iproute2 project with a broad
generic configuration for all file types. Then add exceptions for the file
types which follow different conventions.

See https://editorconfig.org

Signed-off-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Signed-off-by: David Ahern <dsahern@kernel.org>
.editorconfig [new file with mode: 0644]