Fix lint failures blocking CI on infra cleanup implementation#566
Fix lint failures blocking CI on infra cleanup implementation#566
Conversation
⏱ Benchmark Results✅ No significant performance regressions detected. benchstat comparison (baseline → PR)
|
Agent-Logs-Url: https://github.com/GoCodeAlone/workflow/sessions/be13b61e-9a40-404b-87a6-4059d34d0aa7 Co-authored-by: intel352 <77607+intel352@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
This PR addresses CI lint failures introduced during the wfctl infra cleanup --tag work by removing unused code in tests and rewording comments that were being flagged by gocritic.
Changes:
- Refactored
infra_provider_dispatch_test.goto reuse the existingspecNameshelper instead of duplicating its logic inline. - Reworded code-like comments in
refactor_plan.goto avoid triggeringgocritic/commentedOutCode.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| cmd/wfctl/infra_provider_dispatch_test.go | Reuses specNames(specs) in two seams to eliminate unused/duplicated logic in the test. |
| cmd/iac-codemod/refactor_plan.go | Rewords code-generation comments to avoid gocritic lint findings. |
|
@copilot resolve the merge conflicts in this pull request and #566 (review) |
Agent-Logs-Url: https://github.com/GoCodeAlone/workflow/sessions/df55bdf2-745f-446e-8583-19440afd3a61 Co-authored-by: intel352 <77607+intel352@users.noreply.github.com>
Merged |
|
@copilot resolve the merge conflicts in this pull request |
Agent-Logs-Url: https://github.com/GoCodeAlone/workflow/sessions/da406332-b6db-41a6-ba77-5cd730eacd8a Co-authored-by: intel352 <77607+intel352@users.noreply.github.com>
Merged |
CI lint job was failing on two findings introduced alongside the
wfctl infra cleanup --tagimplementation.Fixes
cmd/wfctl/infra_provider_dispatch_test.go—specNameshelper was defined but never called; the twocomputeInfraPlanclosures duplicated its body inline. Replaced the inline loops withspecNames(specs)calls.cmd/iac-codemod/refactor_plan.go— Two// generates: <code>comments flagged bygocritic/commentedOutCodebecause they contained valid Go syntax (:=,return). Reworded to// AST output: `<code>`format.