Miscellaneous-NoGlobalVariables¶
Do not use global (non-const) variables
Required inputs: IR
Possible Messages
Key |
Text |
Severity |
Disabled |
|---|---|---|---|
no_global_nonconst_variable |
Do not use non-const global variables. |
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
disallow_dynamic_initialization¶
disallow_dynamic_initialization : bool = False
report_static_fields¶
report_static_fields : bool = True
report_static_locals¶
report_static_locals : bool = True