summaryrefslogtreecommitdiff
path: root/.editorconfig
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2021-10-10 16:37:12 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2021-10-13 13:01:56 +0100
commitbd5efb819bdd075c79e9ef5789847c3097db16da (patch)
tree2ec3d45b45a6fc1eb987fe8a1c7785b09d4c3067 /.editorconfig
parente037e32d1c4e693e01bdf165dd9cb29ef1683b3f (diff)
downloadlibgweather-bd5efb819bdd075c79e9ef5789847c3097db16da.tar.gz
Add editor configuration file
Most text editors, as well as GNOME Builder, understand the editorconfig format, and it avoids using modelines like we're in 1987.
Diffstat (limited to '.editorconfig')
-rw-r--r--.editorconfig41
1 files changed, 41 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 0000000..d59bc10
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,41 @@
+# SPDX-FileCopyrightText: 2021 Emmanuele Bassi
+#
+# SPDX-License-Identifier: CC0-1.0
+
+root = true
+
+[*]
+indent_style = space
+insert_final_newline = true
+trim_trailing_whitespace = true
+end_of_line = lf
+charset = utf-8
+
+[meson.build]
+indent_size = 2
+
+[*.c]
+indent_size = 4
+max_line_length = 80
+
+[*.h]
+indent_size = 8
+max_line_length = 120
+
+[*.py]
+indent_size = 4
+max_line_length = 120
+balanced_wrapping = true
+not_skip = __init__.py
+
+[*.json]
+indent_size = 2
+
+[*.md]
+max_line_length = 79
+
+[*.xml]
+indent_size = 2
+
+[*.its]
+indent_size = 2