Skip to main content

Module diagnostics

Module diagnostics 

Source
Expand description

Diagnostics command - Unified type checking and linting across languages

Session 6 Phase 10: CLI command for running diagnostic tools.

§Features

  • Auto-detect available tools (pyright, ruff, tsc, eslint, etc.)
  • Run type checkers and linters in parallel
  • Unified diagnostic output format
  • Severity filtering (error, warning, info, hint)
  • Multiple output formats (JSON, text, SARIF, GitHub Actions)

§Exit Codes (documented in –help, S6-R52 mitigation)

  • 0: Success (no errors, or only warnings without –strict)
  • 1: Errors found (or warnings with –strict)
  • 60: No diagnostic tools available
  • 61: All tools failed to run

Structs§

DiagnosticsArgs
Run type checking and linting

Enums§

DiagnosticOutput
Additional output formats for diagnostics
SeverityFilter
Severity filter for CLI (maps to core Severity)