pub struct SlopConfig {
pub verbosity: f64,
pub erosion: f64,
pub delta_loc: i64,
pub block_verbosity: f64,
pub block_erosion: f64,
pub block_delta_loc: i64,
pub hotspots: usize,
}Expand description
Verbosity / erosion / ΔLOC tripwires. Default verdict is review, not block.
Fields§
§verbosity: f64Review when verbosity ≥ this (default 0.25).
erosion: f64Review when erosion ≥ this (default 0.50).
delta_loc: i64Review when |ΔLOC| of the diff ≥ this (default 800).
block_verbosity: f64Block when verbosity ≥ this (default 0.40).
block_erosion: f64Block when erosion ≥ this (default 0.75).
block_delta_loc: i64Block when ΔLOC ≥ this (default 5000).
hotspots: usizeHow many hotspot functions to list (default 8).
Implementations§
Source§impl SlopConfig
impl SlopConfig
Sourcepub fn merge_with(&self, other: &Self) -> Self
pub fn merge_with(&self, other: &Self) -> Self
Overlay non-default fields from other (higher-priority layer).
Trait Implementations§
Source§impl Clone for SlopConfig
impl Clone for SlopConfig
Source§impl Debug for SlopConfig
impl Debug for SlopConfig
Source§impl Default for SlopConfig
impl Default for SlopConfig
Source§impl<'de> Deserialize<'de> for SlopConfig
impl<'de> Deserialize<'de> for SlopConfig
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
Source§impl PartialEq for SlopConfig
impl PartialEq for SlopConfig
Source§impl Serialize for SlopConfig
impl Serialize for SlopConfig
impl StructuralPartialEq for SlopConfig
Auto Trait Implementations§
impl Freeze for SlopConfig
impl RefUnwindSafe for SlopConfig
impl Send for SlopConfig
impl Sync for SlopConfig
impl Unpin for SlopConfig
impl UnsafeUnpin for SlopConfig
impl UnwindSafe for SlopConfig
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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