summaryrefslogtreecommitdiff
path: root/.editorconfig
diff options
context:
space:
mode:
authorRobert Mader <robert.mader@collabora.com>2024-10-20 18:49:26 +0200
committerKieran Bingham <kieran.bingham@ideasonboard.com>2024-11-19 23:57:09 +0000
commit83c5ad0facdbd0173da2bb9ac0f0adc74c3db5ba (patch)
treec5d47c86fce3b39e8707211f9c778185f183606b /.editorconfig
parent934bbfce24f961c04132b8bb8bd66ea1ae999394 (diff)
Add .editorconfig file
To make contributing to libcamera more fun, see https://editorconfig.org/ Signed-off-by: Robert Mader <robert.mader@collabora.com> Acked-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to '.editorconfig')
-rw-r--r--.editorconfig29
1 files changed, 29 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 00000000..a76b36a7
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,29 @@
+# SPDX-License-Identifier: CC0-1.0
+
+root = true
+
+[*]
+charset = utf-8
+end_of_line = lf
+insert_final_newline = true
+trim_trailing_whitespace = true
+
+[*.{cpp,h}]
+indent_size = 8
+indent_style = tab
+
+[*.json]
+indent_size = 4
+indent_style = space
+
+[*.py]
+indent_size = 4
+indent_style = space
+
+[*.yaml]
+indent_size = 2
+indent_style = space
+
+[{meson.build,meson_options.txt}]
+indent_size = 4
+indent_style = space