summaryrefslogtreecommitdiff
path: root/.editorconfig
diff options
context:
space:
mode:
authorCorey Berla <corey@berla.me>2022-06-03 08:31:16 -0700
committerAntónio Fernandes <antoniojpfernandes@gmail.com>2022-06-03 18:18:31 +0000
commit04ce49f4e546eba224e9f0a91863b3704bd41f06 (patch)
tree1d8db93ccc253cc508457e87ce2813bfeb778454 /.editorconfig
parent69b3d7e61ba2a84c183b1f62af582d34dae0640e (diff)
downloadnautilus-04ce49f4e546eba224e9f0a91863b3704bd41f06.tar.gz
editorconfig: Create initial files
Borrow .editorconfig files from the GTK project. Use the exact same file for src/gtk since we are still keeping GTK style there (remove root=true since it's no longer in the root). The root .editorconfig file is slightly modified since we use 4 space tabs. Leave tab_width=8 since we do have tabs in the code. See: https://editorconfig.org/
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 000000000..fae9b015b
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,29 @@
+# SPDX-FileCopyrightText: 2021 The Nautilus Authors
+# SPDX-License-Identifier: CC0-1.0
+
+root = true
+
+[*]
+charset = utf-8
+end_of_line = lf
+trim_trailing_whitespace = true
+
+[*.[ch]]
+indent_size = 4
+indent_style = space
+insert_final_newline = true
+# For the legacy tabs which still exist in the code:
+tab_width = 8
+
+[*.ui]
+indent_size = 2
+indent_style = space
+insert_final_newline = true
+
+[*.xml]
+indent_size = 2
+indent_style = space
+
+[meson.build]
+indent_size = 2
+indent_style = space \ No newline at end of file