If indent_style is tabs, ignore indent_size.

This commit is contained in:
Amy Boyd
2016-06-24 21:51:21 +01:00
parent 6fea9eba15
commit 014e48701c

View File

@@ -28,6 +28,10 @@ func GetRulesToApplyToSourcePath(sourcePath string, cfs []ConfigFile) map[string
delete(rules, "root") delete(rules, "root")
if indentStyleValue, _ := rules["indent_style"]; indentStyleValue == "tab" {
delete(rules, "indent_size")
}
return rules return rules
} }