From 014e48701ceb4ee675b571f23d4de838ba847c8d Mon Sep 17 00:00:00 2001 From: Amy Boyd Date: Fri, 24 Jun 2016 21:51:21 +0100 Subject: [PATCH] If indent_style is tabs, ignore indent_size. --- editorconfig/apply.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/editorconfig/apply.go b/editorconfig/apply.go index b96d165..463482e 100644 --- a/editorconfig/apply.go +++ b/editorconfig/apply.go @@ -28,6 +28,10 @@ func GetRulesToApplyToSourcePath(sourcePath string, cfs []ConfigFile) map[string delete(rules, "root") + if indentStyleValue, _ := rules["indent_style"]; indentStyleValue == "tab" { + delete(rules, "indent_size") + } + return rules }