summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRebecca Cran <rebecca@bsdio.com>2023-03-01 10:19:50 -0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2023-09-08 18:56:52 +0000
commitd42ad81e2247bc6f1c30ef7be5fafc6fcfa0dfb9 (patch)
tree012ad625cbefac4b7f34b4745dddcf674d91955b
parent28a74d7ab22a33e3915eb747879d58797718f6f2 (diff)
downloadedk2-d42ad81e2247bc6f1c30ef7be5fafc6fcfa0dfb9.tar.gz
edk2-d42ad81e2247bc6f1c30ef7be5fafc6fcfa0dfb9.tar.bz2
edk2-d42ad81e2247bc6f1c30ef7be5fafc6fcfa0dfb9.zip
Add a .editorconfig file to tell editors basic formatting details
Add a .editorconfig file which editors can use for basic formatting details of files, such as tabs/spaces, line endings etc. Signed-off-by: Rebecca Cran <rebecca@bsdio.com> Reviewed-by: Ard Biesheuvel <ardb@kernel.org> Acked-by: Michael D Kinney <michael.d.kinney@intel.com>
-rw-r--r--.editorconfig31
1 files changed, 31 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 0000000000..bbc7cf80d6
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,31 @@
+# EditorConfig file: https://EditorConfig.org
+
+root = true
+
+[*]
+charset = latin1
+end_of_line = crlf
+indent_style = space
+indent_size = 2
+insert_final_newline = true
+trim_trailing_whitespace = true
+
+[*.py]
+charset = utf-8
+indent_style = space
+indent_size = 4
+
+[*.sh]
+end_of_line = lf
+
+[.gitattributes]
+end_of_line = lf
+
+[.mailmap]
+charset = utf-8
+
+[Maintainers.txt]
+charset = utf-8
+
+[Makefile,GNUmakefile]
+indent_style = tab