IsZero reports whether the config has no active project policy.
()
| 114 | |
| 115 | // IsZero reports whether the config has no active project policy. |
| 116 | func (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 |
no outgoing calls