pub struct ScopesLintReport {
pub roots: Vec<String>,
pub project_only: bool,
pub scopes_checked: usize,
pub files_checked: usize,
pub dead_patterns: Vec<DeadPattern>,
pub unscoped_files: Vec<String>,
}Expand description
Full report produced by omni-dev config scopes lint.
Fields§
§roots: Vec<String>Roots checked for scope coverage.
project_only: boolWhether ecosystem-injected default scopes were excluded.
scopes_checked: usizeNumber of scopes validated against.
files_checked: usizeNumber of tracked files considered under roots, after --allow.
dead_patterns: Vec<DeadPattern>file_patterns entries matching no tracked file.
unscoped_files: Vec<String>Tracked files under roots matched by no scope.
Implementations§
Source§impl ScopesLintReport
impl ScopesLintReport
Sourcepub fn has_violations(&self) -> bool
pub fn has_violations(&self) -> bool
Whether the report found any violation.
Trait Implementations§
Source§impl Clone for ScopesLintReport
impl Clone for ScopesLintReport
Source§fn clone(&self) -> ScopesLintReport
fn clone(&self) -> ScopesLintReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ScopesLintReport
impl Debug for ScopesLintReport
Source§impl<'de> Deserialize<'de> for ScopesLintReport
impl<'de> Deserialize<'de> for ScopesLintReport
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 ScopesLintReport
impl RefUnwindSafe for ScopesLintReport
impl Send for ScopesLintReport
impl Sync for ScopesLintReport
impl Unpin for ScopesLintReport
impl UnsafeUnpin for ScopesLintReport
impl UnwindSafe for ScopesLintReport
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