From aa0b6fd4a824d29e49393ddd53c546638465d9e6 Mon Sep 17 00:00:00 2001 From: adisbladis Date: Wed, 25 Aug 2021 12:49:23 -0500 Subject: [PATCH] Add editorconfig file --- .editorconfig | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..1ccb157 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,24 @@ +# top-most EditorConfig file +root = true + +# Unix-style newlines with a newline ending every file +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true + +[*.{cc,hh,hpp,pl,pm,sh,t}] +indent_style = space +intend_size = 4 + +[Makefile] +indent_style = tab + +[*.nix] +indent_style = space +indent_size = 2 + +# Match diffs, avoid to trim trailing whitespace +[*.{diff,patch}] +trim_trailing_whitespace = false