Miscellaneous-NoDebugMacro

Do not use certain debugging macros

Required inputs: IR

This rule prevents the use of a configurable set of macros.
See Also
Rule Miscellaneous-ForbiddenMacros

Possible Messages

Key

Text

Severity

Disabled

debug_macro_use

Macro must not be used.

None

False

Options

macros

macros : set[bauhaus.analysis.config.MacroName] = {'DEBUG', 'LOG'}

Use of these macros will be reported.
 

only_report_defined_uses

only_report_defined_uses : bool = False

Only report a violation if the macro is defined at the point of use.