AnalyzerModule.determine_risk_counts

You're seeing just the function determine_risk_counts, go back to AnalyzerModule module for more information.
Link to this function

determine_risk_counts(report)

View Source

Specs

determine_risk_counts(RepoReport.t()) :: map()

determine_risk_counts/1: takes in a full report of n-repo reports, and calculates the number or risk ratings, given the number of repos. It returns a new report with the risk_counts object populated with the count table. Have to accommodate both the atom and string elements, because the JSON gets parsed into the string format - so caching can be supported (as reports are stored in JSON).