1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-07 02:03:13 +02:00

core: add configuration file .editorconfig

To ease the initial hurdle of using the proper formatting across files,
introduce a simple .editorconfig file.

Nearly every common editor supports it OOTB these days, including the
GitHub and GitLab web editors.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
This commit is contained in:
Emil Velikov
2024-09-11 00:26:46 +01:00
committed by Sébastien Helleu
parent 58e6e41948
commit 0e9f841974
+25
View File
@@ -0,0 +1,25 @@
# To use this config on you editor, follow the instructions at:
# https://editorconfig.org
root = true
[*]
charset = utf-8
insert_final_newline = true
indent_size = 4
indent_style = space
tab_width = 8
trim_trailing_whitespace = true
[{*.{c,cpp,h}}]
max_line_length = 80
[{CMakeLists.txt,*.cmake}]
max_line_length = 80
indent_size = 2
[*.html]
indent_size = 2
[*.yml]
indent_size = 2