6.2.7.2. CycleDetection-IncludeCycles¶
Find cycles in the graph of #includes and report them as violations
Required inputs: RFG
This rule identifies cycles in the graph of
#includes.
A cycle in the include graph bears the risk of mutual dependencies between files and thus build problems. At the same time, cycles impede understandability of the code for a developer.
If you need more advanced cycle detection features, use the rules inside the
Graph-based Analyses/Cycles section in the
Architecture group.
Possible Messages
This rule has no predefined messages.
Options¶
This rule shares the following common options: exclude_in_macros, exclude_messages_in_system_headers, excludes, includes, justification_checker, post_processing
The following places define options that affect this rule: CycleDetection, Analysis-GlobalOptions
base_view_name¶
base_view_name : str = 'Include'
generate_violation_previews¶
generate_violation_previews : bool = True
pre_excludes¶
pre_excludes : set[bauhaus.analysis.config.GlobPattern] = set()
preview_edge_limit¶
preview_edge_limit : int = 1000
preview_node_limit¶
preview_node_limit : int = 1000
selfloops¶
selfloops : bool = False