Miscellaneous-ForbiddenTokens

Do not use certain token sequences

Required inputs: IR

This rule prevents the use of a configurable set of keywords.

Possible Messages

Key

Text

Severity

Disabled

forbidden_token

Use of forbidden token.

None

False

Options

blacklist

blacklist : set[str] = {'char', 'const', 'int', 'unsigned'}

List of tokens that must not appear in source code.