pub struct SimpleFormatter;Expand description
Outputs linter diagnostics in the simple format, for CLI display, which has the structure:
<file path>:<line>:<column>: [<severity>] <msg>The diagnostics are followed by a summary of the number of linted files, total errors, and total warnings.
Trait Implementations§
Source§impl Clone for SimpleFormatter
impl Clone for SimpleFormatter
Source§fn clone(&self) -> SimpleFormatter
fn clone(&self) -> SimpleFormatter
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SimpleFormatter
impl Debug for SimpleFormatter
Source§impl OutputFormatter for SimpleFormatter
impl OutputFormatter for SimpleFormatter
fn id(&self) -> &'static str
fn format( &self, output: &[LintOutput], _metadata: &ConfigMetadata, ) -> Result<String>
fn should_log_metadata(&self) -> bool
fn get_summary(&self, output: &[LintOutput]) -> OutputSummary
Auto Trait Implementations§
impl Freeze for SimpleFormatter
impl RefUnwindSafe for SimpleFormatter
impl Send for SimpleFormatter
impl Sync for SimpleFormatter
impl Unpin for SimpleFormatter
impl UnwindSafe for SimpleFormatter
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more