in admin/lint/lint.go [30:58]
func isBlacklisted(candidate string) bool {
// Skip hidden files as we don't need to run checks on them. (This is not strictly
// true, but it's simpler this way for now and the risk is low given that the hidden
// files we have are trivial.)
if strings.HasPrefix(candidate, ".") {
return true
}
// Skip the Rust build directory.
if strings.HasPrefix(candidate, "target/") {
return true
}
base := filepath.Base(candidate)
ext := filepath.Ext(candidate)
// Only worry about non-generated files.
if base == "Cargo.lock" || base == "Makefile" || base == "go.mod" || base == "go.sum" {
return true
}
// Skip plist files, which even though are manually written, they have quite a few
// exceptions.
if ext == ".plist" {
return true
}
return false
}