Commit a71250d
Add depguard rule to prevent imports of experimental/ packages (#4662)
## Summary
- Adds a `depguard` lint rule that prevents non-experimental code from
importing `experimental/` packages
- Only `cmd/cmd.go` and `cmd/experimental/` are allowed as entry points
into experimental code
- The existing violation in `cmd/apps/init.go` is excluded with a TODO
to address later
## Test plan
- [x] `golangci-lint run ./...` passes with 0 issues
- [x] Verified that new imports of `experimental/` from outside the
allowed files are flagged
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 911df0f commit a71250d
1 file changed
+18
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
23 | 37 | | |
24 | 38 | | |
25 | 39 | | |
| |||
107 | 121 | | |
108 | 122 | | |
109 | 123 | | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
110 | 128 | | |
111 | 129 | | |
112 | 130 | | |
| |||
0 commit comments