Add editorconfig config file
authorAndreas Schneider <asn@samba.org>
Sun, 4 Jul 2021 18:06:04 +0000 (20:06 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 7 Jul 2021 05:54:16 +0000 (05:54 +0000)
See https://editorconfig.org/ for details.

(neo)vim: https://github.com/editorconfig/editorconfig-vim
emacs:    https://github.com/editorconfig/editorconfig-emacs

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Wed Jul  7 05:54:16 UTC 2021 on sn-devel-184

.editorconfig [new file with mode: 0644]

diff --git a/.editorconfig b/.editorconfig
new file mode 100644 (file)
index 0000000..118f888
--- /dev/null
@@ -0,0 +1,33 @@
+root = true
+
+[*]
+charset = utf-8
+max_line_length = 80
+end_of_line = lf
+trim_trailing_whitespace = true
+insert_final_newline = false
+
+[*.{c,h,idl}]
+indent_style = tab
+indent_size = 8
+tab_width = 8
+
+[*.{py,sh}]
+indent_style = space
+indent_size = 4
+tab_width = 4
+
+[*.{pl,pm}]
+indent_style = tab
+indent_size = 8
+tab_width = 8
+
+[wscript*]
+indent_style = space
+indent_size = 4
+tab_width = 4
+
+[source4/heimdal/**.{c,h}]
+indent_style = space
+indent_size = 4
+tab_width = 4