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

Function isCommandBoundaryScope

lint/errscontract/rule_no_bare_command_error.go:447–452  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

445}
446
447func isCommandBoundaryScope(path string) bool {
448 path = filepath.ToSlash(path)
449 return (strings.HasPrefix(path, "cmd/") || strings.HasPrefix(path, "shortcuts/")) &&
450 strings.HasSuffix(path, ".go") &&
451 !strings.HasSuffix(path, "_test.go")
452}
453
454func ParseLegacyCommandErrorAllowlist(raw string) LegacyCommandErrorAllowlist {
455 allow, _ := ParseLegacyCommandErrorAllowlistWithDiagnostics(raw, "")

Calls

no outgoing calls

Tested by

no test coverage detected