Open
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Hi @ShipwellHQ[bot]! 👋 Thanks for contributing to layr! 🎉 ⭐ Please star the repo if you like it! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🛠️ Shipwell Auto-Fix: refactor
Automated fixes generated by Shipwell analysis.
✅ Applied Fixes (9)
src/planner/index.ts,src/planner/ai.tssrc/planner/index.ts,src/planner/ai.tssrc/planner/ai.ts,src/planner/cache.ts,src/test/suite/ai.test.tssrc/planner/interfaces.ts,src/templates/builtinTemplates.ts,src/planner/rules.tssrc/planner/ai.ts,src/planner/providers/gemini.tssrc/planner/index.tsanytypes used in test files and mock configurationssrc/test/suite/planner.test.ts,src/test/suite/ollama.test.ts,tests/mocks/vscode.tssrc/planner/index.ts,package.jsonsrc/version-control/HistoryView.ts,src/templates/templateBrowser.tsFinding details
⚪ Massive JSON parsing/repair logic duplicated across Planner, GeminiPlanGenerator, and GeminiProvider
Category: code-duplication
Files:
src/planner/index.ts,src/planner/ai.ts⚪ validateFileStructure and validateNextSteps duplicated between Planner and GeminiPlanGenerator
Category: code-duplication
Files:
src/planner/index.ts,src/planner/ai.ts⚪ Dead code: entire GeminiPlanGenerator class (src/planner/ai.ts) is orphaned
Category: dead-code
Files:
src/planner/ai.ts,src/planner/cache.ts,src/test/suite/ai.test.ts⚪ Naming collision: PlanTemplate interface defined in both interfaces.ts and builtinTemplates.ts with different shapes
Category: naming-inconsistency
Files:
src/planner/interfaces.ts,src/templates/builtinTemplates.ts,src/planner/rules.ts⚪ Gemini safety settings configuration duplicated 3 times in ai.ts and once in gemini.ts
Category: code-duplication
Files:
src/planner/ai.ts,src/planner/providers/gemini.ts⚪ Unused RuleBasedPlanGenerator instantiation and dead loadConfig provider logic
Category: dead-code
Files:
src/planner/index.ts⚪ Type safety gap:
anytypes used in test files and mock configurationsCategory: type-safety
Files:
src/test/suite/planner.test.ts,src/test/suite/ollama.test.ts,tests/mocks/vscode.ts⚪ Configuration loading in Planner hardcodes Groq but retains multi-provider config interface
Category: architecture
Files:
src/planner/index.ts,package.json⚪ HistoryView and TemplateBrowser have HTML generation in TypeScript that should use a shared webview utility
Category: security
Files:
src/version-control/HistoryView.ts,src/templates/templateBrowser.ts⏭️ Skipped (4) — no diff available
❌ Failed (3)
Generated by Shipwell 🚢