OW2 Risk Model
Description | The OW2 risk model is the risk model used by default on the OW2 projects' dashboards. Its normalization intervals are slightly more severe than the ones used by the basic risk model. It is less demanding in terms of license checking than the strict-IP model though. | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Normalization intervals |
| ||||||||||||||||||||||||||||||||||||||||
License Risk Function | function computeLicenseRisk(uniqueLicenses, noLicenseCount, fileCount, ommLcs) { return ( normalize(uniqueLicenses, "unique-licenses") + normalize((noLicenseCount / fileCount)*100, "ratio-no-license") + normalize(ommLcs, "omm-license") ) / 3; } | ||||||||||||||||||||||||||||||||||||||||
Quality Risk Function | function computeCodeQualityRisk(blockerIssues, criticalIssues, testCoverage, testSuccess, ommPdoc, ommStd, ommQtp, ommEnv, ommDfct, ommMst) { var ommAvg = ( normalize(ommPdoc,"omm-pdoc") + normalize(ommStd, "omm-std") + normalize(ommQtp,"omm-qtp") + normalize(ommEnv,"omm-env") + normalize(ommDfct, "omm-dfct") + normalize(ommMst, "omm-mst")) / 6; return ( (normalize(blockerIssues, "blocker-issues") + normalize(criticalIssues, "critical-issues")) / 2 + normalize(testCoverage, "test-coverage", true) + normalize(testSuccess, "test-success", true) + ommAvg ) / 4; } | ||||||||||||||||||||||||||||||||||||||||
Activity Risk Function | function computeActivenessRisk(openHubActivity, openHubContributors, ommCm, ommPp, ommReqm, ommRdmp, ommStk) { return ( normalize(openHubActivity, "openhub-activity", true) + normalize(openHubContributors, "openhub-one-year-contributor-count", true) + normalize(ommCm,"omm-cm") + normalize(ommPp,"omm-pp") + normalize(ommReqm,"omm-reqm") + normalize(ommRdmp,"omm-rdmp") + normalize(ommStk,"omm-stk")) / 7; } | ||||||||||||||||||||||||||||||||||||||||
Market Readiness Function |