View Source RiskLogic (LowEndInsight v0.8.1)

RiskLogic contains the functionality for determining risk based on numeric input values

Link to this section Summary

Functions

last_commit_size_risk/1: returns a text enumeration for the risk based on the size of the last commit

commit_currency_risk/1: returns text enumeration for commit currency risk

contributor_risk/1: returns text enumeration for count

functional_contributors_risk/1: returns the enumerated risk based on input contributors list

sbom_risk/1: returns text risk level for identified sbom_risk

Link to this section Functions

Link to this function

commit_change_size_risk(change_percent)

View Source
@spec commit_change_size_risk(non_neg_integer()) :: {:ok, String.t()}

last_commit_size_risk/1: returns a text enumeration for the risk based on the size of the last commit

Link to this function

commit_currency_risk(delta_in_weeks)

View Source
@spec commit_currency_risk(non_neg_integer()) :: {:ok, String.t()}

commit_currency_risk/1: returns text enumeration for commit currency risk

Link to this function

contributor_risk(contributor_count)

View Source
@spec contributor_risk(non_neg_integer()) :: {:ok, String.t()}

contributor_risk/1: returns text enumeration for count

Link to this function

functional_contributors_risk(contributors)

View Source
@spec functional_contributors_risk(non_neg_integer()) :: {:ok, String.t()}

functional_contributors_risk/1: returns the enumerated risk based on input contributors list

@spec sbom_risk() :: {:ok, String.t()}

sbom_risk/1: returns text risk level for identified sbom_risk