Miscellaneous-InitializeAllVariables¶
Initialize all variables when defining them
Required inputs: IR
See Also
Rule GeneralPurpose-InitializeAllFieldsInConstructor (equivalent rule for member variables)Possible Messages
Key |
Text |
Severity |
Disabled |
|---|---|---|---|
uninitialized_variable_definition |
Variable not initialized at definition point. |
None |
False |
Options¶
This rule shares the following common options: exclude_in_macros, exclude_messages_in_system_headers, excludes, extend_exclude_to_macro_invocations, includes, justification_checker, languages, post_processing, provider, report_at, severity
The following places define options that affect this rule: Stylechecks, Analysis-GlobalOptions
ignore_arrays¶
ignore_arrays : bool = False
ignore_composites¶
ignore_composites : bool = False
ignore_static_initialized¶
ignore_static_initialized : bool = False
ignore_types¶
ignore_types : set[bauhaus.analysis.config.QualifiedName] = set()