6.2.5.57. Architecture-XAMLAnalysis

Import content of XAML files and add entries from data bindings used in XAML files

Required inputs: CSharpAST, RFG

Creates a RFG view that contains information stored in XAML files; additionally it fills the entries view with entities possibly referenced in XAML files.

Possible Messages

This rule has no predefined messages.

Options

accesses_view_name

accesses_view_name : str = 'XAML Accesses'

View in which approximation of XAML-accessed entities are copied.
 

activate_constructors

activate_constructors : bool = True

Consider all constructors of all types referenced in XAML as alive.
 

activate_default_constructors

activate_default_constructors : bool = True

Consider all default constructors of all types referenced in XAML as alive.
 

add_data_template_bindings

add_data_template_bindings : bool = True

If set to True: look for members for bindings in DataTemplate elements, add them without checkingfor the complete qualified name
 

entries_view_name

entries_view_name : str = 'Entries'

Entries view for dead code analysis, to be filled with approximation of XAML-accessed entities; provide the empty string for this input if it should not be filled.
 

export_warnings

export_warnings : bool = True

Export output messages to the analysis database.
 

files

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

List of paths of the XAML files to be imported.
 

loglevel

loglevel : LogLevel = 'WARNING'

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

report_nonexisting_namespaces

report_nonexisting_namespaces : bool = False

Report namespaces that where defined in XAML but could not be found.
 

xaml_view_name

xaml_view_name : str = 'XAML'

The view containing raw XAML information.
 

Option Types

These types are used by options listed above:

LogLevel

An enumeration.
 
  • WARNING

  • INFO

  • DEBUG