style(xatu): remove redundant comments

This commit is contained in:
2026-09-18 22:30:52 -04:00
parent 508f866f57
commit 81c5e55e4f
2 changed files with 0 additions and 8 deletions

View File

@@ -6,19 +6,14 @@ pub mod empty_inherit;
#[derive(Debug)]
pub struct Finding {
/// Identifies the rule that produced this finding.
pub rule_id: &'static str,
/// Identifies the source range that triggered this finding.
pub range: ast::SourceRange,
/// Describes the finding for human-readable output.
pub message: &'static str,
}
#[derive(Debug)]
pub struct Diagnostic {
/// Identifies the file that contains this diagnostic.
pub file_id: FileId,
/// Contains the node-local rule finding.
pub finding: Finding,
}

View File

@@ -8,14 +8,11 @@ pub use rules::{Diagnostic, Finding};
#[derive(Debug)]
pub struct Report {
/// Contains the analyzed source files.
pub files: FileStore,
/// Contains lint diagnostics from analyzed source files.
pub diagnostics: Vec<Diagnostic>,
}
impl Report {
/// Returns true when Xatu found no diagnostics.
pub fn is_clean(&self) -> bool {
self.diagnostics.is_empty()
}