Code Quality errors

Code quality failures occur when the review workflow can't analyze your code or when the specialized subagents encounter problems during execution.

Common error signatures

Where errors originate

Errors typically start in the CodeReviewWorkflow class when:

Check the CodeReviewWorkflow.execute() method first, as it orchestrates the entire review process.

How to diagnose

  1. Verify your path exists and is readable. Run ls -la <your-path> to confirm the files exist and you have read permissions. Code quality needs to traverse the directory structure and read source files.

  2. Check for unsupported file types. If your directory contains binary files, large data files, or non-source code, the subagents may fail. Try reviewing a smaller, source-code-only subset first.

  3. Look for subagent-specific failures. The error message often indicates which reviewer failed — security-reviewer, quality-reviewer, perf-reviewer, or architect-reviewer. This narrows down whether it's a parsing issue, analysis complexity, or resource constraint.

  4. Test with a minimal case. If reviewing a large codebase fails, try a single file first: /code-quality src/config.py. If that works, gradually increase scope to isolate where the failure occurs.

  5. Check available memory and disk space. Deep reviews of large codebases can be resource-intensive. The workflow may fail if system resources are exhausted during analysis.

Source files

Tags: review, quality, bugs