DSACMS / metrics

Experimentations in Open Source Repository Metrics
https://dsacms.github.io/metrics/
Other
6 stars 2 forks source link

Add COCOMO metrics #176

Closed Firebird1029 closed 1 month ago

Firebird1029 commented 1 month ago

Add COCOMO Metrics

Problem

COCOMO, which stands for Constructive Cost Model, is a software estimation model that predicts the cost, effort, and schedule of software development projects. It uses a regression formula derived from historical project data and considers factors such as project size, complexity, and development environment. Calculating COCOMO helps organizations estimate project resources more accurately, manage budgets effectively, and set realistic timelines for software development. scc (aka Sloc, Cloc and Code aka Succinct Code Counter) is a tool for counting the lines of code, blank lines, comment lines, and physical lines of source code in many programming languages. It also performs a COCOMO calculation and estimates code complexity.

Solution

This PR adds COCOMO metrics with the benefits listed above.

IsaacMilarky commented 1 month ago

When attempting to run the script I get this output on line 15:

jq: error (at _metadata/projects_tracked.json:183): Cannot iterate over null (null)
IsaacMilarky commented 1 month ago

Although the script also does add the COCOMO metrics to the file correctly so I don't know why it isn't printing anything