Externals-FieldLimits

User-provided summary of possible struct or class field values

This rule enables the user to define a lower and/or upper limit for the fields of a struct, union, or class. The limit applies to all instances of the specified types, rather than just individual instances. It can, e.g., be used to define possible initial or environment-based values for the fields.

Possible Messages

This rule has no predefined messages.

Options

The following places define options that affect this rule: Analysis-GlobalOptions

fields

fields : set[bauhaus.analysis.config.QualifiedName] = set()

Field names of struct, union, or class for which the limits apply, e.g. Namespace::MyStruct.x or MyTypedef.y.
 

max

max : int | None = None

Upper bound (inclusive) of possible values
 

min

min : int | None = None

Lower bound (inclusive) of possible values