summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Burnicki <martin.burnicki@meinberg.de>2024-01-03 10:11:22 +0100
committerMartin Burnicki <martin.burnicki@meinberg.de>2024-01-03 10:11:22 +0100
commit83393aabddaa814aa6896f15f62670e4b3090b4d (patch)
tree79ee247afb05fa67701425c675c9e08237c907e4
parent9094005b0f0ff1c1d6bc21ae6fad43b571638c79 (diff)
downloadmbgreadtimestring-83393aabddaa814aa6896f15f62670e4b3090b4d.tar.gz
mbgreadtimestring-83393aabddaa814aa6896f15f62670e4b3090b4d.zip
Add .editorconfig
-rw-r--r--.editorconfig28
1 files changed, 28 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 0000000..666e706
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,28 @@
+# Editor configuration, see https://editorconfig.org
+
+# This is the top-most editorconfig file.
+root = true
+
+
+# General settings.
+[*]
+trim_trailing_whitespace = true
+insert_final_newline = true
+
+
+# Source code.
+[*.{c,cpp,h,hpp}]
+indent_style = space
+indent_size = 2
+
+
+# Trailing spaces matter for markdown files
+[*.md]
+trim_trailing_whitespace = false
+max_line_length = off
+
+
+# Tabs matter for makefiles and .gitmodules
+[{makefile*,Makefile*,*.mk,*.mak,*.makefile,*.Makefile,GNUmakefile,BSDmakefile,Makevars*,*.gitmodules}]
+indent_style = tab
+indent_size = 2