CodingStyle-TooManyIncludes

Report units with high number of included files

Required inputs: IR

This rule will report compilation units that include more than the configured number of files.

Possible Messages

Key

Text

Severity

Disabled

too_many_includes_in_unit

unit includes more than {} files.

None

False

too_many_includes_with_value

unit includes {} files which is more than the limit of {} files.

None

False

Options

allowed

allowed : int = 400

Maximum permissible number of included files
 

count_indirect_system_includes

count_indirect_system_includes : bool = True

Whether system-includes from inside system headers should be counted.
 

show_value

show_value : bool = False

Select whether message should indicate the current value and limit.