chore: remove dead code across project (4690 lines) - #509
Conversation
- Remove unused config files (.nvmrc, .release-please-manifest.json) - Remove duplicate hooks (commit-guard.sh, session-start.sh, check-lsp-install.sh) - Remove duplicate scripts (check-conflicts.sh, verify-pr-status.sh) - Remove duplicate skill (strategic-compact) - Remove test artifacts (baseline-results.md, green-results.md, refactor-conclusions.md) - Remove temporary files (test.txt, CODE_CLEANUP_TEST.md, TEST_CREATE_PR.md) - Remove unused dependencies (@vitest/ui, esbuild, gray-matter, yaml) - Remove unused scripts (test:ui, test:coverage, test:run) - Remove workspaces config (no packages using it) - Remove duplicate package-lock.json (bun.lock exists) - Add .cache/ to .gitignore - Fix opensearch skill documentation (remove non-existent directory refs) - Update git-guard tests to reference plugin version of commit-guard.sh
📝 WalkthroughWalkthroughThis PR removes numerous hook scripts, utility scripts, documentation files, and skills while updating test paths to reference relocated plugin locations. It also simplifies package.json by removing workspace configuration and dev dependencies. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@package.json`:
- Around line 14-23: The devDependencies in package.json were changed (items
like `@vitest/ui`, esbuild, gray-matter, yaml were removed), so update the
lockfile by running bun install to regenerate Bun’s lock entries and ensure
consistency; after pulling the modified package.json, run bun install in the
repo root and commit the updated bun.lockb so the project and CI use the new
dependency state.
🧹 Nitpick comments (1)
tests/git-guard/git-guard-specific.bats (1)
67-67: Unquoted path inbash -ccould break ifPROJECT_ROOTcontains spaces.Lines 67, 74, 81, 88 pipe into the script path without quoting it (e.g.,
| ${PROJECT_ROOT}/plugins/...), unlike the other tests which use'${PROJECT_ROOT}/plugins/...'. This is pre-existing but worth fixing for consistency and robustness.Example fix for Line 67
- run bash -c "echo '$json_input' | ${PROJECT_ROOT}/plugins/git-guard/hooks/commit-guard.sh" + run bash -c "echo '$json_input' | '${PROJECT_ROOT}/plugins/git-guard/hooks/commit-guard.sh'"Same pattern for lines 74, 81, and 88.
Also applies to: 74-74, 81-81, 88-88
| "devDependencies": { | ||
| "@commitlint/cli": "^19.6.1", | ||
| "@commitlint/config-conventional": "^19.6.0", | ||
| "@semantic-release/git": "^10.0.1", | ||
| "@vitest/ui": "^2.0.0", | ||
| "commitizen": "^4.3.1", | ||
| "cz-conventional-changelog": "^3.3.0", | ||
| "esbuild": "^0.27.3", | ||
| "gray-matter": "^4.0.0", | ||
| "husky": "^9.1.7", | ||
| "semantic-release": "^21.0.7", | ||
| "vitest": "^2.0.0", | ||
| "yaml": "^2.0.0" | ||
| "vitest": "^2.0.0" | ||
| }, |
There was a problem hiding this comment.
🛠️ Refactor suggestion | 🟠 Major
Ensure bun install is run after these dependency removals.
Removing @vitest/ui, esbuild, gray-matter, and yaml from devDependencies requires regenerating the lockfile to stay in sync. As per coding guidelines, "Always run bun install after modifying package.json".
🤖 Prompt for AI Agents
In `@package.json` around lines 14 - 23, The devDependencies in package.json were
changed (items like `@vitest/ui`, esbuild, gray-matter, yaml were removed), so
update the lockfile by running bun install to regenerate Bun’s lock entries and
ensure consistency; after pulling the modified package.json, run bun install in
the repo root and commit the updated bun.lockb so the project and CI use the new
dependency state.
Summary
Remove 4,707 lines of dead code across the entire projectbase.
Changes
Removed Files
.nvmrc,.release-please-manifest.json(Bun migration complete, semantic-release only)test.txt,CODE_CLEANUP_TEST.md,TEST_CREATE_PR.mdhooks/commit-guard.sh,hooks/session-start.sh,hooks/check-lsp-install.sh(active copies exist in plugins/)scripts/check-conflicts.sh,scripts/verify-pr-status.sh(active copies exist in skills/create-pr/)skills/suggest-compacting/strategic-compact/(duplicate of suggest-compacting)skills/research/baseline-results.md,green-results.md,refactor-conclusions.md(TDD development history)plugins/databricks-devtools/package-lock.json(bun.lock exists)Modified Files
.gitignore: Added.cache/directorypackage.json: Removed unused dependencies (@vitest/ui,esbuild,gray-matter,yaml) and scripts (test:ui,test:coverage,test:run), removed emptyworkspacesconfigskills/opensearch/SKILL.md: Removed references to non-existent directoriestests/git-guard/git-guard-specific.bats: Updated to reference plugin version ofcommit-guard.shTest Plan
Statistics
Summary by CodeRabbit