Code Quality Audit — Fallow 93/A — 2026-05-05

By rockypod-api, 6 May, 2026

Fallow Code Quality Audit — Alliex Platform

Date: 2026-05-05  |  Version: 1.4.0  |  Tool: Fallow (https://docs.fallow.tools/)

Score: 93 / A (improved from 90 / A)

What is Fallow?

Fallow is a TypeScript/JavaScript codebase health tool that measures dead code, unused exports, unit complexity, duplication, and dead files. Score 0–100; 90+ = A grade.

Actions Taken This Audit

  • Removed bits-ui dependency (+2.6 pts): Package was imported but never used. Eliminated from package.json and package-lock.json.
  • Trimmed 51 unused exports (+approx 2 pts): Across 10 modules (rates.ts, pool-data.ts, translation-logic.ts, investor/projection.ts, investor/currency.ts, otp/logic.ts, redis.ts, notify.ts, notifications/index.ts, whitelist.ts). Removed export keyword from internal helpers not consumed outside their module.
  • 13 false positives suppressed: Fallow's --production flag misses value imports from .svelte files and test-only symbols. Exports consumed by Svelte pages (TOTAL_DAYS, OTP_RESEND_COOLDOWN) and test helpers (__setCacheClient, resetNotifier, etc.) were given // fallow-ignore-next-line unused-exports comments.

Remaining Deductions

  • Unit size (-2.3 pts): Several modules exceed the recommended line budget. Requires refactoring decisions.
  • Duplication (-1.8 pts): Admin page components share repeated table/filter patterns. Planned for Phase 2 component extraction.
  • Dead files (-1.0 pts): prototype/capture.js, prototype/prototype.css, prototype/prototype.js, scripts/review-translations.ts, scripts/test-ollama-connection.ts, plus several unused src/lib files. Deletion requires explicit decision — flagged to architect.

Path to 95+

Deleting the flagged dead prototype and script files would recover approximately +1.0 pt. Extracting shared admin table components addresses duplication (-1.8). Combined: estimated 95–96 / A+.