MCPcopy Index your code
hub / github.com/livebud/bud / invalidGoFile

Function invalidGoFile

internal/valid/valid.go:55–62  ·  view source on GitHub ↗

Invalid Go file

(name string)

Source from the content-addressed store, hash-verified

53
54// Invalid Go file
55func invalidGoFile(name string) bool {
56 return len(name) == 0 || // Empty string
57 path.Ext(name) != ".go" ||
58 name[0] == '_' || // Starts with _
59 name[0] == '.' || // Starts with .
60 name == "bud.go" || // Named bud (reserved)
61 strings.HasSuffix(name, "_test") // Test file
62}
63
64// Invalid public file
65func invalidPublicFile(name string) bool {

Callers 3

ControllerFileFunction · 0.85
CommandFileFunction · 0.85
GoFileFunction · 0.85

Calls 1

ExtMethod · 0.45

Tested by

no test coverage detected