pub struct ClippyConfig {
pub machine_applicable_only: bool,
pub categories: Vec<LintCategory>,
pub include_lints: Vec<String>,
pub exclude_lints: Vec<String>,
pub extra_args: Vec<String>,
}Expand description
Configuration for running Clippy
Fields§
§machine_applicable_only: boolOnly include MachineApplicable suggestions
categories: Vec<LintCategory>Filter by lint categories
include_lints: Vec<String>Specific lints to include (empty = all)
exclude_lints: Vec<String>Specific lints to exclude
extra_args: Vec<String>Additional clippy arguments
Implementations§
Source§impl ClippyConfig
impl ClippyConfig
Sourcepub fn machine_applicable_only(self) -> Self
pub fn machine_applicable_only(self) -> Self
Only include MachineApplicable suggestions
Sourcepub fn all_applicabilities(self) -> Self
pub fn all_applicabilities(self) -> Self
Include all suggestions regardless of applicability
Sourcepub fn with_category(self, category: LintCategory) -> Self
pub fn with_category(self, category: LintCategory) -> Self
Filter by category
Sourcepub fn without_lint(self, lint: impl Into<String>) -> Self
pub fn without_lint(self, lint: impl Into<String>) -> Self
Exclude specific lint
Trait Implementations§
Source§impl Clone for ClippyConfig
impl Clone for ClippyConfig
Source§fn clone(&self) -> ClippyConfig
fn clone(&self) -> ClippyConfig
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 ClippyConfig
impl Debug for ClippyConfig
Auto Trait Implementations§
impl Freeze for ClippyConfig
impl RefUnwindSafe for ClippyConfig
impl Send for ClippyConfig
impl Sync for ClippyConfig
impl Unpin for ClippyConfig
impl UnsafeUnpin for ClippyConfig
impl UnwindSafe for ClippyConfig
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