diff mbox series

[[libubootenv] v3 1/3] add .editorconfig file

Message ID 20191011134808.5348-2-adrian.freihofer@siemens.com
State Accepted
Headers show
Series [[libubootenv] v3 1/3] add .editorconfig file | expand

Commit Message

Freihofer, Adrian Oct. 11, 2019, 1:48 p.m. UTC
Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
---
 .editorconfig | 18 ++++++++++++++++++
 .gitignore    |  2 +-
 2 files changed, 19 insertions(+), 1 deletion(-)
 create mode 100644 .editorconfig
diff mbox series

Patch

diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 0000000..729d734
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,18 @@ 
+# top-most EditorConfig file
+root = true
+
+# Unix-style newlines with a newline ending every file
+[*]
+charset = utf-8
+end_of_line = lf
+insert_final_newline = true
+
+[CMakeLists.txt]
+indent_size = 2
+indent_style = space
+
+[*.{c,h}]
+indent_brace_style = K&R
+insert_final_newline = true
+indent_style = tab
+tab_width = 8
diff --git a/.gitignore b/.gitignore
index 25a8f96..75032b8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -25,4 +25,4 @@  src/cmake_install.cmake
 src/fw_printenv
 src/libubootenv.so.*
 src/libubootenv_static.a
-
+.vscode