What problem does it solve?
SCRUTINIZE addresses the need for a detailed code review process, ensuring logic correctness, security, and edge case handling beyond the scope of policy-based gates.
Core Features & Use Cases
- Logic Correctness: Detects off-by-one errors, null paths, and asynchronous race conditions.
- Security: Identifies SQL injection vulnerabilities, RLS bypass, exposed secrets, and unvalidated input.
- Data Flow: Checks for type coercion, JSONB casting issues, and shape mismatches in Supabase queries.
- Edge Cases: Audits for empty arrays, deleted rows, network failure paths, and retry storms.
- FSD Import Direction: Validates compliance with the specified import direction policy.
- Dead Code: Identifies orphaned exports and unreachable branches.
- Use Case: Integrate SCRUTINIZE into your workflow to perform a thorough review before merging code, ensuring high-quality, secure, and maintainable codebases.
Quick Start
Run SCRUTINIZE by typing: npx tsx src/index.ts scrutinize <repo> from the repository root directory.