pub struct LintResult {
pub findings: Vec<LintFinding>,
pub stats: LintStats,
}Expand description
Result of linting a workflow
Fields§
§findings: Vec<LintFinding>All findings from linting
stats: LintStatsSummary statistics
Implementations§
Source§impl LintResult
impl LintResult
Sourcepub fn new(findings: Vec<LintFinding>) -> Self
pub fn new(findings: Vec<LintFinding>) -> Self
Create a new lint result
Sourcepub fn has_errors(&self) -> bool
pub fn has_errors(&self) -> bool
Check if there are any errors
Sourcepub fn has_warnings(&self) -> bool
pub fn has_warnings(&self) -> bool
Check if there are any warnings
Sourcepub fn findings_by_severity(&self, severity: LintSeverity) -> Vec<&LintFinding>
pub fn findings_by_severity(&self, severity: LintSeverity) -> Vec<&LintFinding>
Get findings by severity
Sourcepub fn findings_by_category(&self, category: LintCategory) -> Vec<&LintFinding>
pub fn findings_by_category(&self, category: LintCategory) -> Vec<&LintFinding>
Get findings by category
Trait Implementations§
Source§impl Clone for LintResult
impl Clone for LintResult
Source§fn clone(&self) -> LintResult
fn clone(&self) -> LintResult
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 LintResult
impl Debug for LintResult
Source§impl<'de> Deserialize<'de> for LintResult
impl<'de> Deserialize<'de> for LintResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LintResult
impl RefUnwindSafe for LintResult
impl Send for LintResult
impl Sync for LintResult
impl Unpin for LintResult
impl UnwindSafe for LintResult
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