MCPcopy
hub / github.com/larksuite/cli / isErrorFactGoFile

Function isErrorFactGoFile

internal/qualitygate/rules/errorfacts.go:1037–1043  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

1035}
1036
1037func isErrorFactGoFile(path string) bool {
1038 path = filepath.ToSlash(path)
1039 if !(strings.HasPrefix(path, "cmd/") || strings.HasPrefix(path, "shortcuts/")) {
1040 return false
1041 }
1042 return strings.HasSuffix(path, ".go") && !strings.HasSuffix(path, "_test.go")
1043}

Calls

no outgoing calls

Tested by

no test coverage detected