Add support for non-standard rule 'ignore'.

This commit is contained in:
Amy Boyd
2016-12-22 14:20:41 +00:00
parent 67e51c079a
commit 6a2c768176
4 changed files with 20 additions and 2 deletions

View File

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