]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Add editorconfig file (#591)
authorFrancesco Chemolli <kinkie@squid-cache.org>
Sat, 4 Jul 2020 07:43:12 +0000 (07:43 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Sun, 5 Jul 2020 15:53:45 +0000 (15:53 +0000)
.editorconfig [new file with mode: 0644]

diff --git a/.editorconfig b/.editorconfig
new file mode 100644 (file)
index 0000000..8e9e00e
--- /dev/null
@@ -0,0 +1,32 @@
+# https://editorconfig.org/
+# specification: https://editorconfig-specification.readthedocs.io/en/latest/
+
+[*]
+end_of_line = lf
+insert_final_newline = true
+trim_trailing_whitespace = true
+
+[*.{c,h,hh,cc,cci}]
+indent_style = space
+indent_size = 4
+
+[Makefile]
+indent_style = tab
+
+[*.am]
+indent_style = tab
+
+[*.{ac,m4}]
+indent_style = space
+indent_size = 2
+
+[*.awk]
+indent_style = space
+indent_size = 4
+
+[*.{pl,pl.in,pm}]
+indent_style = space
+indent_size = 4
+
+# [*.data.pre]
+# no clear convention here