pub struct GateConfig {
pub max_cyclomatic_per_function: Option<u32>,
pub max_nesting_depth: Option<u32>,
pub max_lines_per_function: Option<u32>,
pub max_lines_per_file: Option<u32>,
pub max_code_lines_per_file: Option<u32>,
pub max_parameters_per_function: Option<u32>,
pub min_coverage_percent: Option<f64>,
pub max_duplicate_lines: Option<u32>,
pub max_clippy_warnings: Option<u32>,
pub max_line_length: Option<usize>,
}Expand description
Absolute thresholds that override baseline values when set. Based on industry standards (SonarQube, ESLint, DeepSource).
Fields§
§max_cyclomatic_per_function: Option<u32>§max_nesting_depth: Option<u32>§max_lines_per_function: Option<u32>§max_lines_per_file: Option<u32>§max_code_lines_per_file: Option<u32>§max_parameters_per_function: Option<u32>§min_coverage_percent: Option<f64>§max_duplicate_lines: Option<u32>§max_clippy_warnings: Option<u32>§max_line_length: Option<usize>Trait Implementations§
Source§impl Clone for GateConfig
impl Clone for GateConfig
Source§fn clone(&self) -> GateConfig
fn clone(&self) -> GateConfig
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 GateConfig
impl Debug for GateConfig
Source§impl Default for GateConfig
impl Default for GateConfig
Source§fn default() -> GateConfig
fn default() -> GateConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GateConfig
impl RefUnwindSafe for GateConfig
impl Send for GateConfig
impl Sync for GateConfig
impl Unpin for GateConfig
impl UnsafeUnpin for GateConfig
impl UnwindSafe for GateConfig
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,
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