pub struct Configuration {Show 18 fields
pub format: OutputFormat,
pub source_set_overrides: SourceSetOverrides,
pub budgets: Budgets,
pub new_file_budgets: Budgets,
pub languages: Languages,
pub regression_limits: RegressionLimits,
pub plugins: Vec<PluginDeclaration>,
pub plugin_limits: PluginLimits,
pub boundaries: Option<Boundaries>,
pub dependencies: DependenciesConfig,
pub duplication: DuplicationConfig,
pub file_size: FileSizeConfig,
pub entry_points: EntryPoints,
pub coverage_reports: Vec<String>,
pub dialects: BTreeMap<String, DialectRules>,
pub hazards: HazardsConfig,
pub framework_profiles: FrameworkProfilesConfig,
pub ratchet: RatchetConfig,
/* private fields */
}Fields§
§format: OutputFormat§source_set_overrides: SourceSetOverrides§budgets: Budgets§new_file_budgets: Budgets§languages: Languages§regression_limits: RegressionLimits§plugins: Vec<PluginDeclaration>§plugin_limits: PluginLimits§boundaries: Option<Boundaries>§dependencies: DependenciesConfig§duplication: DuplicationConfig§file_size: FileSizeConfig§entry_points: EntryPoints§coverage_reports: Vec<String>§dialects: BTreeMap<String, DialectRules>§hazards: HazardsConfig§framework_profiles: FrameworkProfilesConfig§ratchet: RatchetConfigImplementations§
Source§impl Configuration
impl Configuration
pub fn config_file(&self) -> ConfigFileKind
Source§impl Configuration
impl Configuration
pub fn validate_cli_budget_metrics( &self, overrides: &[BudgetOverride], external_metric_keys: &[&str], ) -> Result<(), ConfigurationFileError>
pub fn validate_metrics( &self, external_metric_keys: &[&str], ) -> Result<(), ConfigurationFileError>
Trait Implementations§
Source§impl Debug for Configuration
impl Debug for Configuration
Source§impl Default for Configuration
impl Default for Configuration
Auto Trait Implementations§
impl Forget for Configuration
impl Freeze for Configurationwhere
*const u8 is !null: Freeze,
PhantomData<(SourceSet, GlobSet)>: Freeze,
PhantomData<(SourceSet, String, Budget)>: Freeze,
PhantomData<(String, Budget)>: Freeze,
PhantomData<LanguageEntry>: Freeze,
PhantomData<(String, RegressionLimitSetting)>: Freeze,
PhantomData<(SourceSet, String, RegressionLimitSetting)>: Freeze,
PhantomData<PluginDeclaration>: Freeze,
*const LeafNode<String, BoundaryZoneFile> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, BoundaryZoneFile)>>: Freeze,
PhantomData<BoundaryRuleFile>: Freeze,
*const LeafNode<String, CompiledZone> is !null: Freeze,
PhantomData<Box<(String, CompiledZone)>>: Freeze,
PhantomData<GlobSetMatchStrategy>: Freeze,
PhantomData<CompiledZonePattern>: Freeze,
PhantomData<(String, Vec<CompiledRule>)>: Freeze,
PhantomData<CompiledRule>: Freeze,
PhantomData<(String, Vec<CompiledExternalRule>)>: Freeze,
PhantomData<CompiledExternalRule>: Freeze,
PhantomData<SourceSet>: Freeze,
*const LeafNode<String, SetValZST> is !null: Freeze,
PhantomData<Box<(String, SetValZST)>>: Freeze,
NonZero<u32>: Freeze,
PhantomData<String>: Freeze,
*const LeafNode<String, DialectRules> is !null: Freeze,
PhantomData<Box<(String, DialectRules)>>: Freeze,
*const LeafNode<String, FrameworkProfileSelection> is !null: Freeze,
PhantomData<Box<(String, FrameworkProfileSelection)>>: Freeze,
PhantomData<u8>: Freeze,
*const LeafNode<String, Budget> is !null: Freeze,
PhantomData<Box<(String, Budget)>>: Freeze,
*const LeafNode<String, RegressionLimitSetting> is !null: Freeze,
PhantomData<Box<(String, RegressionLimitSetting)>>: Freeze,
PhantomData<LanguageGlobs>: Freeze,
PhantomData<PluginEntry>: Freeze,
PhantomData<BoundarySourceSet>: Freeze,
*const LeafNode<String, Vec<DialectEntryFile>> is !null: Freeze,
PhantomData<Box<(String, Vec<DialectEntryFile>)>>: Freeze,
*const LeafNode<String, PackageConfigFile> is !null: Freeze,
PhantomData<Box<(String, PackageConfigFile)>>: Freeze,
impl Move for Configuration
impl RefUnwindSafe for Configurationwhere
Atomic<usize>: RefUnwindSafe,
Pool<Cache, Box<dyn Fn() -> Cache + Sync + RefUnwindSafe + UnwindSafe + Send>>: RefUnwindSafe,
Pool<PatternSet, Box<dyn Fn() -> PatternSet + Sync + RefUnwindSafe + UnwindSafe + Send>>: RefUnwindSafe,
NonZero<u32>: RefUnwindSafe,
impl Send for Configurationwhere
RawVecInner: Send,
RawTable<(Vec<u8>, Vec<usize>)>: Send,
Arc<dyn AcAutomaton>: Send,
RawTable<(Vec<u8>, Vec<(usize, Regex)>)>: Send,
Arc<RegexI>: Send,
BoxRaw<Pool<Cache, Box<dyn Fn() -> Cache + Sync + RefUnwindSafe + UnwindSafe + Send>>>: Send,
Arc<Pool<PatternSet, Box<dyn Fn() -> PatternSet + Sync + RefUnwindSafe + UnwindSafe + Send>>>: Send,
NodeRef<Owned, String, BoundaryZoneFile, LeafOrInternal>: Send,
BoxRaw<(String, BoundaryZoneFile)>: Send,
NodeRef<Owned, String, CompiledZone, LeafOrInternal>: Send,
BoxRaw<(String, CompiledZone)>: Send,
RawTable<(String, Vec<CompiledRule>)>: Send,
RawTable<(String, ())>: Send,
RawTable<(String, Vec<CompiledExternalRule>)>: Send,
NodeRef<Owned, String, SetValZST, LeafOrInternal>: Send,
BoxRaw<(String, SetValZST)>: Send,
NonZero<u32>: Send,
NodeRef<Owned, String, DialectRules, LeafOrInternal>: Send,
BoxRaw<(String, DialectRules)>: Send,
NodeRef<Owned, String, FrameworkProfileSelection, LeafOrInternal>: Send,
BoxRaw<(String, FrameworkProfileSelection)>: Send,
NodeRef<Owned, String, Budget, LeafOrInternal>: Send,
BoxRaw<(String, Budget)>: Send,
NodeRef<Owned, String, RegressionLimitSetting, LeafOrInternal>: Send,
BoxRaw<(String, RegressionLimitSetting)>: Send,
NodeRef<Owned, String, Vec<DialectEntryFile>, LeafOrInternal>: Send,
BoxRaw<(String, Vec<DialectEntryFile>)>: Send,
NodeRef<Owned, String, PackageConfigFile, LeafOrInternal>: Send,
BoxRaw<(String, PackageConfigFile)>: Send,
impl Sync for Configurationwhere
RawVecInner: Sync,
RawTable<(Vec<u8>, Vec<usize>)>: Sync,
Arc<dyn AcAutomaton>: Sync,
RawTable<(Vec<u8>, Vec<(usize, Regex)>)>: Sync,
Arc<RegexI>: Sync,
BoxRaw<Pool<Cache, Box<dyn Fn() -> Cache + Sync + RefUnwindSafe + UnwindSafe + Send>>>: Sync,
Arc<Pool<PatternSet, Box<dyn Fn() -> PatternSet + Sync + RefUnwindSafe + UnwindSafe + Send>>>: Sync,
NodeRef<Owned, String, BoundaryZoneFile, LeafOrInternal>: Sync,
BoxRaw<(String, BoundaryZoneFile)>: Sync,
NodeRef<Owned, String, CompiledZone, LeafOrInternal>: Sync,
BoxRaw<(String, CompiledZone)>: Sync,
RawTable<(String, Vec<CompiledRule>)>: Sync,
RawTable<(String, ())>: Sync,
RawTable<(String, Vec<CompiledExternalRule>)>: Sync,
NodeRef<Owned, String, SetValZST, LeafOrInternal>: Sync,
BoxRaw<(String, SetValZST)>: Sync,
NonZero<u32>: Sync,
NodeRef<Owned, String, DialectRules, LeafOrInternal>: Sync,
BoxRaw<(String, DialectRules)>: Sync,
NodeRef<Owned, String, FrameworkProfileSelection, LeafOrInternal>: Sync,
BoxRaw<(String, FrameworkProfileSelection)>: Sync,
NodeRef<Owned, String, Budget, LeafOrInternal>: Sync,
BoxRaw<(String, Budget)>: Sync,
NodeRef<Owned, String, RegressionLimitSetting, LeafOrInternal>: Sync,
BoxRaw<(String, RegressionLimitSetting)>: Sync,
NodeRef<Owned, String, Vec<DialectEntryFile>, LeafOrInternal>: Sync,
BoxRaw<(String, Vec<DialectEntryFile>)>: Sync,
NodeRef<Owned, String, PackageConfigFile, LeafOrInternal>: Sync,
BoxRaw<(String, PackageConfigFile)>: Sync,
impl Unpin for Configurationwhere
*const u8 is !null: Unpin,
Arc<dyn AcAutomaton>: Unpin,
Arc<RegexI>: Unpin,
Box<Pool<Cache, Box<dyn Fn() -> Cache + Sync + RefUnwindSafe + UnwindSafe + Send>>>: Unpin,
Arc<Pool<PatternSet, Box<dyn Fn() -> PatternSet + Sync + RefUnwindSafe + UnwindSafe + Send>>>: Unpin,
*const LeafNode<String, BoundaryZoneFile> is !null: Unpin,
Box<(String, BoundaryZoneFile)>: Unpin,
*const LeafNode<String, CompiledZone> is !null: Unpin,
Box<(String, CompiledZone)>: Unpin,
*const LeafNode<String, SetValZST> is !null: Unpin,
Box<(String, SetValZST)>: Unpin,
NonZero<u32>: Unpin,
*const LeafNode<String, DialectRules> is !null: Unpin,
Box<(String, DialectRules)>: Unpin,
*const LeafNode<String, FrameworkProfileSelection> is !null: Unpin,
Box<(String, FrameworkProfileSelection)>: Unpin,
*const LeafNode<String, Budget> is !null: Unpin,
Box<(String, Budget)>: Unpin,
*const LeafNode<String, RegressionLimitSetting> is !null: Unpin,
Box<(String, RegressionLimitSetting)>: Unpin,
*const LeafNode<String, Vec<DialectEntryFile>> is !null: Unpin,
Box<(String, Vec<DialectEntryFile>)>: Unpin,
*const LeafNode<String, PackageConfigFile> is !null: Unpin,
Box<(String, PackageConfigFile)>: Unpin,
impl UnsafeUnpin for Configurationwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<(SourceSet, GlobSet)>: UnsafeUnpin,
PhantomData<(SourceSet, String, Budget)>: UnsafeUnpin,
PhantomData<(String, Budget)>: UnsafeUnpin,
PhantomData<LanguageEntry>: UnsafeUnpin,
PhantomData<(String, RegressionLimitSetting)>: UnsafeUnpin,
PhantomData<(SourceSet, String, RegressionLimitSetting)>: UnsafeUnpin,
PhantomData<PluginDeclaration>: UnsafeUnpin,
*const LeafNode<String, BoundaryZoneFile> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, BoundaryZoneFile)>>: UnsafeUnpin,
PhantomData<BoundaryRuleFile>: UnsafeUnpin,
*const LeafNode<String, CompiledZone> is !null: UnsafeUnpin,
PhantomData<Box<(String, CompiledZone)>>: UnsafeUnpin,
PhantomData<GlobSetMatchStrategy>: UnsafeUnpin,
PhantomData<CompiledZonePattern>: UnsafeUnpin,
PhantomData<(String, Vec<CompiledRule>)>: UnsafeUnpin,
PhantomData<CompiledRule>: UnsafeUnpin,
PhantomData<(String, Vec<CompiledExternalRule>)>: UnsafeUnpin,
PhantomData<CompiledExternalRule>: UnsafeUnpin,
PhantomData<SourceSet>: UnsafeUnpin,
*const LeafNode<String, SetValZST> is !null: UnsafeUnpin,
PhantomData<Box<(String, SetValZST)>>: UnsafeUnpin,
NonZeroU32Inner: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const LeafNode<String, DialectRules> is !null: UnsafeUnpin,
PhantomData<Box<(String, DialectRules)>>: UnsafeUnpin,
*const LeafNode<String, FrameworkProfileSelection> is !null: UnsafeUnpin,
PhantomData<Box<(String, FrameworkProfileSelection)>>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const LeafNode<String, Budget> is !null: UnsafeUnpin,
PhantomData<Box<(String, Budget)>>: UnsafeUnpin,
*const LeafNode<String, RegressionLimitSetting> is !null: UnsafeUnpin,
PhantomData<Box<(String, RegressionLimitSetting)>>: UnsafeUnpin,
PhantomData<LanguageGlobs>: UnsafeUnpin,
PhantomData<PluginEntry>: UnsafeUnpin,
PhantomData<BoundarySourceSet>: UnsafeUnpin,
*const LeafNode<String, Vec<DialectEntryFile>> is !null: UnsafeUnpin,
PhantomData<Box<(String, Vec<DialectEntryFile>)>>: UnsafeUnpin,
*const LeafNode<String, PackageConfigFile> is !null: UnsafeUnpin,
PhantomData<Box<(String, PackageConfigFile)>>: UnsafeUnpin,
impl UnwindSafe for Configurationwhere
RawVecInner: UnwindSafe,
HashMap<Vec<u8>, Vec<usize>, BuildHasherDefault<Hasher>>: UnwindSafe,
Arc<dyn AcAutomaton>: UnwindSafe,
HashMap<Vec<u8>, Vec<(usize, Regex)>, BuildHasherDefault<Hasher>>: UnwindSafe,
Arc<RegexI>: UnwindSafe,
BoxRaw<Pool<Cache, Box<dyn Fn() -> Cache + Sync + RefUnwindSafe + UnwindSafe + Send>>>: UnwindSafe,
Arc<Pool<PatternSet, Box<dyn Fn() -> PatternSet + Sync + RefUnwindSafe + UnwindSafe + Send>>>: UnwindSafe,
BTreeMap<String, BoundaryZoneFile>: UnwindSafe,
BTreeMap<String, CompiledZone>: UnwindSafe,
HashMap<String, Vec<CompiledRule>>: UnwindSafe,
NonNull<u8>: UnwindSafe,
HashMap<String, Vec<CompiledExternalRule>>: UnwindSafe,
BTreeMap<String, SetValZST>: UnwindSafe,
NonZero<u32>: UnwindSafe,
BTreeMap<String, DialectRules>: UnwindSafe,
BTreeMap<String, FrameworkProfileSelection>: UnwindSafe,
BTreeMap<String, Budget>: UnwindSafe,
BTreeMap<String, RegressionLimitSetting>: UnwindSafe,
BTreeMap<String, Vec<DialectEntryFile>>: UnwindSafe,
BTreeMap<String, PackageConfigFile>: UnwindSafe,
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