6.2.5.44. Architecture-CombinedDeadCode

Report dead code findings considering several client projects (i.e., findings that appear in all projects)

Required inputs: RFG

Possible Messages

This rule has no predefined messages.

Options

alive_view_name

alive_view_name : str = 'Combined Alive'

Name of the result view containing the alive functions
 

base_view_name

base_view_name : str = 'Code Facts'

Name of the base views of the involved projects in which to search for dead code
 

dead_view_name

dead_view_name : str = 'Combined Dead'

Name of the result view containing the dead functions
 

entries_view_name

entries_view_name : str = 'Entries'

Name of the entries views of the involved projects, which provide the entry points for alive functions
 

export_warnings

export_warnings : bool = True

Export output messages to the analysis database.
 

loglevel

loglevel : LogLevel = 'WARNING'

Logging mode. WARNING only outputs errors and warnings, INFO additionally prints info messages, DEBUG additionally outputs info and debug messages.
 

merge_copies

merge_copies : bool = True

Whether all copies of a function (due to missing dllexport) should be considered alive as soon as one of them is alive
 

project_rfgs

project_rfgs : set[bauhaus.analysis.config.LayerRelativePath] = set()

Locations of project RFGs.
 

Option Types

These types are used by options listed above:

LogLevel

An enumeration.
 
  • WARNING

  • INFO

  • DEBUG