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 }