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 fixesIssueCollection: A collection of issues with filtering and sorting capabilitiesreporter::Reporter: Handles formatting and outputting issues in various formatsbaseline::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.
- Compiled
Ignore Set - Pre-compiled ignore entries ready for use by
IssueCollection::filter_out_ignored. - Issue
- Represents an issue identified in the code.
- Issue
Collection - A collection of issues.
Enums§
- Annotation
Kind - Represents the kind of annotation associated with an issue.
- Ignore
Entry - Represents an entry in the analyzer’s
ignoreconfiguration. - Level
- Represents the severity level of an issue.
- Reporting
Format - The format to use for reporting.
Functions§
- osc8_
hyperlink - Build an OSC 8 hyperlink wrapping
display_text.