Skip to content

eo report codequality

eo report codequality

Analyze code quality metrics

Synopsis

Analyze code quality metrics including cyclomatic complexity, lines of code, coupling, cohesion (LCOM), and overall health scores.

By default, quality thresholds are fetched from the EmbedOps platform and can be overridden via command-line flags. Use --help to see all available threshold flags.

Supports C, C++, Python, Go, and Rust.

eo report codequality [source directory] [flags]

Options

      --complexity-excellent int   Cyclomatic complexity threshold for excellent quality (default 10)
      --complexity-good int        Cyclomatic complexity threshold for good quality (default 20)
      --complexity-warning int     Cyclomatic complexity threshold for warning (default 30)
      --coupling-excellent int     Coupling threshold for excellent quality (default 5)
      --coupling-good int          Coupling threshold for good quality (default 10)
      --coupling-warning int       Coupling threshold for warning (default 15)
  -h, --help                       help for codequality
      --ignore strings             Paths to ignore (can be specified multiple times or comma-separated, supports glob patterns)
      --language string            Filter analysis to specific language (c, cpp, python, go, rust)
      --lcom-excellent int         LCOM % threshold for excellent quality (default 40)
      --lcom-good int              LCOM % threshold for good quality (default 65)
      --lcom-warning int           LCOM % threshold for warning (default 80)
      --loc-excellent int          Lines of code threshold for excellent quality (default 200)
      --loc-good int               Lines of code threshold for good quality (default 500)
      --loc-warning int            Lines of code threshold for warning (default 1000)
  -l, --local                      Run analysis locally without uploading to EmbedOps
  -o, --output string              Output file path for local reports (default "./code-quality-report.json")
  -v, --verbose                    Enable verbose output with detailed file-by-file metrics

SEE ALSO

Auto generated by spf13/cobra on 15-Dec-2025