pub struct WarningSettings {
pub enabled: bool,
pub treat_as_errors: bool,
pub per_code: FxHashMap<WarningCode, WarnLevel>,
pub exclude_addons: bool,
pub engine: (u32, u32),
pub strict_opt_in: bool,
}Expand description
The resolved warning configuration for a project (or the standalone analyzer default). Parsed
from project.godot’s debug/gdscript/warnings/*; passed to gate.
Fields§
§enabled: booldebug/gdscript/warnings/enable — the master switch (default true).
treat_as_errors: booldebug/gdscript/warnings/treat_warnings_as_errors — escalate every WARN to ERROR.
per_code: FxHashMap<WarningCode, WarnLevel>Explicit per-code level overrides from project.godot.
exclude_addons: booldebug/gdscript/warnings/exclude_addons — suppress warnings under res://addons/**.
engine: (u32, u32)The project’s declared engine (major, minor), for version-gating master-only codes.
strict_opt_in: boolWhen true (a standalone run / CLI --strict), the IGNORE-default opt-in group is
promoted to WARN. A real project.godot clears this (its explicit settings win).
Implementations§
Source§impl WarningSettings
impl WarningSettings
Sourcepub fn analyzer_default() -> Self
pub fn analyzer_default() -> Self
The standalone default (no project.godot): everything on, the opt-in strictness group
promoted to WARN, addons not excluded. Matches the analyzer’s pre-gating behavior.
Sourcepub fn engine_default(engine: (u32, u32)) -> Self
pub fn engine_default(engine: (u32, u32)) -> Self
The engine-matching default for a project of declared version engine: Godot’s own
default_warning_levels[] (the opt-in group stays IGNORE), addons excluded.
Trait Implementations§
Source§impl Clone for WarningSettings
impl Clone for WarningSettings
Source§fn clone(&self) -> WarningSettings
fn clone(&self) -> WarningSettings
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for WarningSettings
impl Debug for WarningSettings
impl Eq for WarningSettings
Source§impl PartialEq for WarningSettings
impl PartialEq for WarningSettings
Source§fn eq(&self, other: &WarningSettings) -> bool
fn eq(&self, other: &WarningSettings) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WarningSettings
Auto Trait Implementations§
impl Freeze for WarningSettings
impl RefUnwindSafe for WarningSettings
impl Send for WarningSettings
impl Sync for WarningSettings
impl Unpin for WarningSettings
impl UnsafeUnpin for WarningSettings
impl UnwindSafe for WarningSettings
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.