mirror of
https://github.com/libarchive/libarchive.git
synced 2026-01-26 15:39:09 +00:00
editorconfig: add simple top-level file
Add a simple top-level .editorconfig file to manage common attributes such as indentation style, trailing whitespace and newline at end of file. The format is wide spread and has support for nearly every editor out there - see https://editorconfig.org/ for more. Majority of the project is C - which uses tabs, although there are some CMake files using 2 space indent and shell scripts - predominantly using 4 space indent. This makes it harder for casual contributors to butcher things :-) Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
This commit is contained in:
parent
dc321febde
commit
d2a1663265
18
.editorconfig
Normal file
18
.editorconfig
Normal file
@ -0,0 +1,18 @@
|
||||
# To use this config on you editor, follow the instructions at:
|
||||
# http://editorconfig.org
|
||||
|
||||
root = true
|
||||
|
||||
[*]
|
||||
charset = utf-8
|
||||
indent_style = tab
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespace = true
|
||||
|
||||
[*.sh]
|
||||
indent_style = space
|
||||
indent_size = 4
|
||||
|
||||
[CMakeLists.txt]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
Loading…
x
Reference in New Issue
Block a user