Skip to content

[FIX] Batch bot review findings — CodeRabbit + cubic cleanup #43

Description

@four-bytes-robby

Purpose

Catch-all issue for outstanding CodeRabbit and cubic-dev-ai findings not yet addressed. Fix each finding individually in this branch, leave issue open for future bot findings to be added.

Findings

1. file-tree.test.ts — Vacuous symlink assertion (CodeRabbit, PR #42)

File: tests/file-tree.test.ts lines 107-121
Finding: The test "skips symlinked directories to prevent cycles" has a misleading comment ("symlink dir itself may appear") and a vacuous if (link) check. Since the implementation skips symlinks entirely (lstatSync + isSymbolicLink()), link is always undefined, and the assertion never executes.
Fix: Replace with expect(link).toBeUndefined() and remove misleading comment.

Acceptance

  • Finding 1 fixed and verified

Add new findings below this line as they come in from bot reviews.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions