Skip to content

chore: remove dead code across project (4690 lines) - #509

Merged
baleen37 merged 1 commit into
mainfrom
chore/remove-dead-code-4690-lines
Feb 16, 2026
Merged

chore: remove dead code across project (4690 lines)#509
baleen37 merged 1 commit into
mainfrom
chore/remove-dead-code-4690-lines

Conversation

@baleen37

@baleen37 baleen37 commented Feb 16, 2026

Copy link
Copy Markdown
Owner

Summary

Remove 4,707 lines of dead code across the entire projectbase.

Changes

Removed Files

  • Config files: .nvmrc, .release-please-manifest.json (Bun migration complete, semantic-release only)
  • Temporary files: test.txt, CODE_CLEANUP_TEST.md, TEST_CREATE_PR.md
  • Duplicate hooks: hooks/commit-guard.sh, hooks/session-start.sh, hooks/check-lsp-install.sh (active copies exist in plugins/)
  • Duplicate scripts: scripts/check-conflicts.sh, scripts/verify-pr-status.sh (active copies exist in skills/create-pr/)
  • Duplicate skill: skills/suggest-compacting/strategic-compact/ (duplicate of suggest-compacting)
  • Test artifacts: skills/research/baseline-results.md, green-results.md, refactor-conclusions.md (TDD development history)
  • Duplicate lock file: plugins/databricks-devtools/package-lock.json (bun.lock exists)

Modified Files

  • .gitignore: Added .cache/ directory
  • package.json: Removed unused dependencies (@vitest/ui, esbuild, gray-matter, yaml) and scripts (test:ui, test:coverage, test:run), removed empty workspaces config
  • skills/opensearch/SKILL.md: Removed references to non-existent directories
  • tests/git-guard/git-guard-specific.bats: Updated to reference plugin version of commit-guard.sh

Test Plan

  • All BATS tests pass (290 tests)
  • No functionality broken (all deleted files had active copies or were unused)

Statistics

  • Lines removed: 4,707
  • Files deleted: 14
  • Files modified: 5

Summary by CodeRabbit

  • Chores
    • Removed various internal hooks, verification scripts, and setup utilities
    • Deleted research and testing documentation files
    • Simplified project configuration by removing workspace setup
    • Removed unused development dependencies and test scripts
    • Added cache directory to gitignore for cleaner version control

- 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
@coderabbitai

coderabbitai Bot commented Feb 16, 2026

Copy link
Copy Markdown
📝 Walkthrough

Walkthrough

This 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

Cohort / File(s) Summary
Removed Hook Scripts
hooks/check-lsp-install.sh, hooks/commit-guard.sh, hooks/session-start.sh
Entire hook scripts removed: LSP installation checker, git security validator, and session handoff notifier.
Removed Utility Scripts
scripts/check-conflicts.sh, scripts/verify-pr-status.sh
Standalone CLI utilities for merge conflict detection and PR status verification with retry logic removed.
Removed Research & Test Documentation
skills/research/baseline-results.md, skills/research/green-results.md, skills/research/refactor-conclusions.md, CODE_CLEANUP_TEST.md, TEST_CREATE_PR.md
Test result reports, phase conclusions, and test documentation files removed.
Removed Skill Definitions
skills/opensearch/SKILL.md, skills/suggest-compacting/strategic-compact/SKILL.md
OpenSearch and context compaction skill documentation removed.
Configuration & Manifest Cleanup
.nvmrc, .release-please-manifest.json, .gitignore, package.json, test.txt
Removed Node.js version pin, release manifest, and trivial test file. Updated .gitignore to include .cache/. Simplified package.json by removing workspaces, test scripts (test:run, test:ui, test:coverage), and devDependencies (@vitest/ui, esbuild, gray-matter, yaml).
Test Path Updates
tests/git-guard/git-guard-specific.bats
All references to hook paths updated from ${PROJECT_ROOT}/hooks/commit-guard.sh to ${PROJECT_ROOT}/plugins/git-guard/hooks/commit-guard.sh across all test cases.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

Poem

🐰 A cleanup hop through the code so neat,
Old scripts and docs make their retreat,
Tests find new paths, plugins consolidate—
The codebase gleams, simplified and great!

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'chore: remove dead code across project (4690 lines)' directly and clearly summarizes the main change—removal of dead/duplicate code totaling ~4,707 lines across the project.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Merge Conflict Detection ✅ Passed ✅ No merge conflicts detected when merging into main

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch chore/remove-dead-code-4690-lines

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 in bash -c could break if PROJECT_ROOT contains 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

Comment thread package.json
Comment on lines 14 to 23
"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"
},

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ 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.

@baleen37
baleen37 merged commit 84005d7 into main Feb 16, 2026
5 checks passed
@baleen37
baleen37 deleted the chore/remove-dead-code-4690-lines branch February 16, 2026 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant