pub struct LintReport {
pub version: &'static str,
pub root: PathBuf,
pub files_scanned: usize,
pub estimated_total_tokens: usize,
pub estimated_duplicated_tokens: usize,
pub diagnostics: Vec<Diagnostic>,
pub fixed_files: Vec<PathBuf>,
}Expand description
Stable machine-readable result returned by the analysis engine.
Fields§
§version: &'static str§root: PathBuf§files_scanned: usize§estimated_total_tokens: usize§estimated_duplicated_tokens: usize§diagnostics: Vec<Diagnostic>§fixed_files: Vec<PathBuf>Implementations§
Source§impl LintReport
impl LintReport
pub fn error_count(&self) -> usize
pub fn warning_count(&self) -> usize
Trait Implementations§
Source§impl Clone for LintReport
impl Clone for LintReport
Source§impl Debug for LintReport
impl Debug for LintReport
Auto Trait Implementations§
impl Freeze for LintReport
impl RefUnwindSafe for LintReport
impl Send for LintReport
impl Sync for LintReport
impl Unpin for LintReport
impl UnsafeUnpin for LintReport
impl UnwindSafe for LintReport
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more