From 0f8e808944335cd21ba4c89e2da119f117b51344 Mon Sep 17 00:00:00 2001 From: Graham Fairweather Date: Mon, 26 Feb 2018 08:18:49 +0100 Subject: [PATCH] Fix: Project is using 4 spaces but editor config is wrong when user env is 2 spaces. --- .editorconfig | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/.editorconfig b/.editorconfig index f524365f..48e1ea2b 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,8 +1,25 @@ +# This file is for unifying the coding style for different editors and IDEs +# editorconfig.org + +# top-most EditorConfig file root = true +# every file +[*] charset = utf-8 -indent_style = space -indent_size = 4 end_of_line = lf +indent_size = 4 +indent_style = space insert_final_newline = true trim_trailing_whitespace = true + +# 4 space indentation +[*.py] +indent_size = 4 + +# Tab indentation (no size specified) +[Makefile] +indent_style = tab + +[*.md] +trim_trailing_whitespace = false