Add .editorconfig file 52/189252/1
authorŁukasz Stelmach <l.stelmach@samsung.com>
Fri, 14 Sep 2018 10:59:27 +0000 (12:59 +0200)
committerŁukasz Stelmach <l.stelmach@samsung.com>
Fri, 14 Sep 2018 11:51:41 +0000 (13:51 +0200)
The file holds basic configuration for text editors regarding
coding style as recommended for Tizen development at
https://wiki.tizen.org/Native_Platform_Coding_Idiom_and_Style_Guide

See https://editorconfig.org/ for details.

Change-Id: I8ba584ba3e0d7967c867902c09b702e2e7a271f1
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
.editorconfig [new file with mode: 0644]

diff --git a/.editorconfig b/.editorconfig
new file mode 100644 (file)
index 0000000..764ee3a
--- /dev/null
@@ -0,0 +1,19 @@
+# EditorConfig file for Tizen projects
+
+root = true
+
+# Unix-style newlines with a newline ending every file
+[*]
+end_of_line = lf
+insert_final_newline = true
+trim_trailing_whitespace = true
+charset = utf-8
+
+# https://wiki.tizen.org/Native_Platform_Coding_Idiom_and_Style_Guide
+[*.{c,cpp,h}]
+indent_style = tab
+indent_size = 4
+
+# Tab indentation (no size specified)
+[Makefile,Makefile.*]
+indent_style = tab