pub struct ToolConfig {
pub journal: String,
pub mode: Mode,
pub output: OutputFormat,
pub ignore_rules: HashSet<String>,
pub verbose: bool,
pub code_width: u32,
pub source_root: PathBuf,
pub min_confidence: ConfidenceTier,
pub fail_on: Severity,
pub severity_overrides: HashMap<String, Severity>,
pub doi_resolver: Option<Arc<DoiResolver>>,
}Expand description
#[derive(Debug)] doesn’t reach here — dyn Fn isn’t Debug — so
Debug is hand-written just below, printing doi_resolver as
present/absent rather than skipping the derive on the whole struct.
Fields§
§journal: String§mode: Mode§output: OutputFormat§ignore_rules: HashSet<String>§verbose: bool§code_width: u32§source_root: PathBuf§min_confidence: ConfidenceTier§fail_on: SeverityExit-code policy: the minimum severity that makes the CLI exit 1.
severity_overrides: HashMap<String, Severity>§doi_resolver: Option<Arc<DoiResolver>>Online DOI verification hook (jss-lint --crossref). None
(the default, always true on the wasm target) keeps
JSS-REFS-003 offline. Not part of .jss-lint.toml/CLI-flag
merging below — injected directly by the caller, same as Python’s
cfg = replace(cfg, doi_resolver=...) in cli.py.
Trait Implementations§
Source§impl Clone for ToolConfig
impl Clone for ToolConfig
Source§fn clone(&self) -> ToolConfig
fn clone(&self) -> ToolConfig
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 ToolConfig
impl Debug for ToolConfig
Auto Trait Implementations§
impl !RefUnwindSafe for ToolConfig
impl !UnwindSafe for ToolConfig
impl Freeze for ToolConfig
impl Send for ToolConfig
impl Sync for ToolConfig
impl Unpin for ToolConfig
impl UnsafeUnpin for ToolConfig
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