pub struct CompiledRule {Show 18 fields
pub id: String,
pub severity: Severity,
pub message: String,
pub languages: BTreeSet<String>,
pub patterns: Vec<Regex>,
pub include: Option<GlobSet>,
pub exclude: Option<GlobSet>,
pub ignore_comments: bool,
pub ignore_strings: bool,
pub match_mode: MatchMode,
pub multiline: bool,
pub multiline_window: usize,
pub context_patterns: Vec<Regex>,
pub context_window: usize,
pub escalate_patterns: Vec<Regex>,
pub escalate_window: usize,
pub escalate_to: Option<Severity>,
pub depends_on: BTreeSet<String>,
}Fields§
§id: String§severity: Severity§message: String§languages: BTreeSet<String>§patterns: Vec<Regex>§include: Option<GlobSet>§exclude: Option<GlobSet>§ignore_comments: bool§ignore_strings: bool§match_mode: MatchMode§multiline: bool§multiline_window: usize§context_patterns: Vec<Regex>§context_window: usize§escalate_patterns: Vec<Regex>§escalate_window: usize§escalate_to: Option<Severity>§depends_on: BTreeSet<String>Implementations§
Source§impl CompiledRule
impl CompiledRule
Trait Implementations§
Source§impl Clone for CompiledRule
impl Clone for CompiledRule
Source§fn clone(&self) -> CompiledRule
fn clone(&self) -> CompiledRule
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 moreAuto Trait Implementations§
impl Freeze for CompiledRule
impl RefUnwindSafe for CompiledRule
impl Send for CompiledRule
impl Sync for CompiledRule
impl Unpin for CompiledRule
impl UnsafeUnpin for CompiledRule
impl UnwindSafe for CompiledRule
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