Miscellaneous-MaxOneStmtPerLine¶
Do not put more than one statement in a line
Required inputs: IR
Example
// BAD:
a = 1; b = 2;
// GOOD:
a = 1;
b = 2;
Possible Messages
Key |
Text |
Severity |
Disabled |
|---|---|---|---|
multiple_statements_per_line |
Multiple statements per line. |
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_stmts¶
ignore_stmts : set[bauhaus.ir.PIR_Class_Name] = {'General_Statement_Sequence'}