From ba653fccfca0e38aa5e963e3985d38b6a5f48431 Mon Sep 17 00:00:00 2001 From: George Kiagiadakis Date: Tue, 29 Jan 2019 16:34:02 +0200 Subject: [PATCH] add .editorconfig files These files help editors choose the correct coding style conventions, mostly useful for the indentation style Pipewire uses tab characters of size 8 in all of its codebase except in the meson files and in the gstreamer plugins, which use 2-space indentation --- .editorconfig | 15 +++++++++++++++ src/gst/.editorconfig | 7 +++++++ 2 files changed, 22 insertions(+) create mode 100644 .editorconfig create mode 100644 src/gst/.editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000..b37058252 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,15 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = tab +indent_size = 8 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +# Use 2 spaces for meson files +[*.build] +indent_style = space +indent_size = 2 diff --git a/src/gst/.editorconfig b/src/gst/.editorconfig new file mode 100644 index 000000000..b6330b24d --- /dev/null +++ b/src/gst/.editorconfig @@ -0,0 +1,7 @@ +[*] +indent_style = space +indent_size = 2 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true