MCPcopy Create free account
hub / github.com/JordanCoin/codemap / IsZero

Method IsZero

config/config.go:116–133  ·  view source on GitHub ↗

IsZero reports whether the config has no active project policy.

()

Source from the content-addressed store, hash-verified

114
115// IsZero reports whether the config has no active project policy.
116func (c ProjectConfig) IsZero() bool {
117 if len(c.Only) > 0 || len(c.Exclude) > 0 || c.Depth > 0 {
118 return false
119 }
120 if strings.TrimSpace(c.Mode) != "" {
121 return false
122 }
123 if c.Budgets.SessionStartBytes > 0 || c.Budgets.DiffBytes > 0 || c.Budgets.MaxHubs > 0 {
124 return false
125 }
126 if strings.TrimSpace(c.Routing.Retrieval.Strategy) != "" || c.Routing.Retrieval.TopK > 0 || len(c.Routing.Subsystems) > 0 {
127 return false
128 }
129 if c.Drift.Enabled || c.Drift.RecentCommits > 0 || len(c.Drift.RequireDocsFor) > 0 {
130 return false
131 }
132 return true
133}
134
135// LooksBoilerplate reports whether the config resembles a bare bootstrap.
136// This intentionally treats extension-only configs as a first draft that

Callers 6

LooksBoilerplateMethod · 0.95
AssessSetupFunction · 0.95
BuildFunction · 0.80
isConfigEmptyFunction · 0.80
shouldSkipMethod · 0.80

Calls

no outgoing calls

Tested by 1