Commit 04f3033
committed
♻️ refactor(import-follow): deduplicate cleanup/audit hygiene option layer
- Extract shared followImportsHygieneOptions struct for common paths,
filters, retention profiles, fail-if-matched, and age-gating
- Unify flag parsing, retention-profile application, and validation
for both cleanup-follow-imports and audit-follow-imports commands
- Add audit-side tests for invalid pattern and retention-profile parsing
- Rename follow_examples_test.go to follow_import_example_fixtures_test.go1 parent 9650974 commit 04f3033
7 files changed
Lines changed: 217 additions & 233 deletions
File tree
- docs/go
- maintainer
- operator
- internal/app
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
155 | 162 | | |
156 | 163 | | |
157 | 164 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
254 | | - | |
| 254 | + | |
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
300 | | - | |
| 300 | + | |
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
| |||
File renamed without changes.
0 commit comments