Repository navigation
Remove unused code - #118
christianhelle wants to merge 3 commits into
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (9)
💤 Files with no reviewable changes (9)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThis pull request removes unused imports across CLI, generator, converter, and unified generator modules. It also deletes an unused test helper and its related imports from the generator test file. ChangesCode and test cleanup
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Refactor Merge Risk: ⚪ Minimal · up to No actionable issue is established by the supplied review context. Normal checks remain appropriate before merging. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
No unresolved issues were identified, and the listed validation completed successfully.
Review effort: Lite
Findings: None
What changed in this PR
Removes unused imports, converter aliases, and an unreferenced generator test fixture without changing runtime behavior.
Changes:
- Cleans stale imports across generators, converters, CLI, and orchestration.
- Removes unused OpenAPI/Swagger aliases.
- Deletes the obsolete Petstore fixture and dependencies.
| File | Description |
|---|---|
src/generators/unified/model_generator/manual.zig |
Removes unused identifier utility import. |
src/generators/unified/model_generator/fields.zig |
Removes unused identifier utility import. |
src/generators/converters/swagger_converter.zig |
Removes unused contact and license aliases. |
src/generators/converters/openapi32_converter.zig |
Removes unused contact and license aliases. |
src/generators/converters/openapi31_converter.zig |
Removes unused aliases. |
src/generators/converters/openapi_converter.zig |
Removes unused contact and license aliases. |
src/generator/tests.zig |
Removes unused fixture and dependencies. |
src/generator.zig |
Removes unused library import. |
src/cli.zig |
Removes unused imports. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #118 +/- ##
=======================================
Coverage 97.06% 97.06%
=======================================
Files 136 136
Lines 16941 16941
=======================================
Hits 16444 16444
Misses 497 497 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Summary
Validation
zig fmt --check .zig build -Doptimize=Debugandzig build test(unit/regression suite)zig build -Doptimize=ReleaseFast,ReleaseSafe,ReleaseSmall, andzig build build-allzig build run-generateandzig run generated/main.zigzig build run-generatedwith a temporary localhost LM Studio API stub; the sample normally expects a service on port 1234.Summary by CodeRabbit