Skip to main content

Crate mago_reporting

Crate mago_reporting 

Source
Expand description

Issue reporting and formatting for Mago.

This crate provides functionality for reporting code issues identified by the linter and analyzer. It includes support for multiple output formats, baseline filtering, and rich terminal output.

§Core Types

  • Issue: Represents a single code issue with severity level, annotations, and optional fixes
  • IssueCollection: A collection of issues with filtering and sorting capabilities
  • reporter::Reporter: Handles formatting and outputting issues in various formats
  • baseline::Baseline: Manages baseline files to filter out known issues

Re-exports§

pub use color::ColorChoice;
pub use output::ReportingTarget;

Modules§

baseline
Baseline functionality for filtering known issues.
color
error
Error types for the reporting crate.
output
reporter
Issue reporter and output formatting.

Structs§

Annotation
An annotation associated with an issue, providing additional context or highlighting specific code spans.
Issue
Represents an issue identified in the code.
IssueCollection
A collection of issues.

Enums§

AnnotationKind
Represents the kind of annotation associated with an issue.
Level
Represents the severity level of an issue.
ReportingFormat
The format to use for reporting.