func shouldIgnore(p string) bool {
	p = strings.TrimPrefix(filepath.ToSlash(p), "./")
	base := path.Base(p)
	return strings.HasPrefix(p, "tools/") || base == ".git" || base == "BUILD" || base == "BUILD.bazel"
}
func shouldIgnore(p string) bool {
	p = strings.TrimPrefix(filepath.ToSlash(p), "./")
	base := path.Base(p)
	return strings.HasPrefix(p, "tools/") || base == ".git" || base == "BUILD" || base == "BUILD.bazel"
}
func shouldIgnore ( p string ) bool { p = strings . TrimPrefix ( filepath . ToSlash ( p ) , " " ) base := path . Base ( p ) return strings . HasPrefix ( p , " " ) || base == " " || base == " " || base == " " }
// shouldIgnore returns whether a write to the given file should be ignored
// because they were caused by gazelle or autogazelle or something unrelated
// to the build.
shouldIgnore returns whether a write to the given file should be ignored because they were caused by gazelle or autogazelle or something unrelated to the build .