Skip to main content

parse_warning_settings

Function parse_warning_settings 

Source
pub fn parse_warning_settings(text: &str, engine: (u32, u32)) -> WarningSettings
Expand description

Parse the debug/gdscript/warnings/* settings from project.godot into a WarningSettings, starting from the engine default for engine. Keys live under [debug] as gdscript/warnings/<tail> (Godot groups a setting by its first path segment). <tail> is enable / treat_warnings_as_errors / exclude_addons (bools) or a code’s lowercased setting-name mapped to a 0|1|2 (Ignore/Warn/Error) level. A deliberate minimal scan (not a VariantParser port); robust to malformed input (a bad line is skipped). directory_rules (Godot master, a typed-Variant dict) is not parsed — see TECH_DEBT.md.