From: Simon Marchi Date: Tue, 16 Apr 2019 12:08:18 +0000 (-0400) Subject: Add .editorconfig file X-Git-Tag: v2.0.0-pre5~97 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=a2b9f08c0e16048812c862dd7238b8733496f7eb Add .editorconfig file This file helps editors set the indentation (and other whitespace) settings correctly to match the project's coding style. For now I have just put some simple settings for C, Swig interface and Python files, but we can add more as needed. See here for more details: https://editorconfig.org/ Signed-off-by: Simon Marchi --- diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..cd6d86c9 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,14 @@ +root = true + +[*] +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true + +[*.{c,h,i}] +indent_style = tab +tab_width = 8 + +[*.py] +indent_style = space +indent_size = 4