RiskRanking-FileCriticality

Impact of a finding, as declared for the files it is reported in

Required inputs: IR

Adding this rule to the list of active RiskRanking actions creates a rank factor column in the Dashboard. The name of the list entry is shown as the column name.

Possible Messages

This rule has no predefined messages.

Options

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

criticality

criticality : dict[bauhaus.analysis.config.FileGlobPattern, float] = {}

How critical the files matching a pattern are, from 0.0 to 1.0. Supports the same patterns as the excludes options.

The most specific matching pattern decides, so a catch-all such as {'**': 0.2, 'src/crypto/**': 1.0} states that only the cryptography sources are critical. An issue relating two places in the code, such as a clone pair or a cycle, is as critical as the most critical file it involves.

 

show_by_default

show_by_default : bool = False

Whether or not to show the column by default.
 

unmatched_criticality

unmatched_criticality : float | None = 0.5

The criticality of a file that no pattern matches. If unset, such files do not contribute.