diff --git a/src/xatu/rules.rs b/src/xatu/rules.rs index aa04a2f..cafb199 100644 --- a/src/xatu/rules.rs +++ b/src/xatu/rules.rs @@ -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, } diff --git a/src/xatu/xatu.rs b/src/xatu/xatu.rs index c16c3e7..bc8b40f 100644 --- a/src/xatu/xatu.rs +++ b/src/xatu/xatu.rs @@ -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, } impl Report { - /// Returns true when Xatu found no diagnostics. pub fn is_clean(&self) -> bool { self.diagnostics.is_empty() }