Will It Vibe?
CQ-014Low severity-4 points

Duplicate code block

Part of Code Quality & Syntax, which counts for 20% of the overall score. When this check fires it deducts 4 points from that category, once per scan, no matter how many places it turns up.

What it detects

Identical 5+ line chunks repeated across the codebase -- a copy-paste smell that should usually be extracted into a shared function.

Why it matters

The same block pasted in multiple places means every bug fix has to be applied in every copy, and in practice one copy gets missed. The copies then drift, and users see a bug fixed on one screen but still present on another.

How to fix it

Diff the copies first; if they have already drifted, decide which behavior is correct before unifying. Then extract the shared block into a named function in the closest sensible shared location and call it from every site, passing in only the values that differ between the copies.

The paid report includes a ready-to-paste prompt for your AI coding agent for every check it finds, pointed at the exact findings from your scan. See pricing

Does your repo trip this check?

Paste a GitHub URL or drop a project folder. Scans run in your browser and take seconds.

Scan your repo

Related Code Quality & Syntax checks