DSACMS / metrics

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

Add SCC COCOMO and Complexity Metrics #141

Open IsaacMilarky opened 1 month ago

IsaacMilarky commented 1 month ago

Issue Report

Add SCC COCOMO and Complexity Metrics

Expected behavior

The repository metrics report page as well as the org metrics report page should display complexity and COCOMO metrics to communicate cost estimates and complexity to the user. We will use the boyter/scc tool in order to generate this part of the report.

Example output:

───────────────────────────────────────────────────────────────────────────────
Language                 Files     Lines   Blanks  Comments     Code Complexity
───────────────────────────────────────────────────────────────────────────────
Markdown                     6       223       72         0      151          0
JavaScript                   2       482       76        31      375         78
JSON                         1       367        0         0      367          0
───────────────────────────────────────────────────────────────────────────────
Total                        9      1072      148        31      893         78
───────────────────────────────────────────────────────────────────────────────
Estimated Cost to Develop (organic) $23,987
Estimated Schedule Effort (organic) 3.33 months
Estimated People Required (organic) 0.64
───────────────────────────────────────────────────────────────────────────────
Processed 33448 bytes, 0.033 megabytes (SI)
───────────────────────────────────────────────────────────────────────────────

Actual behavior

These metrics are missing.

IsaacMilarky commented 1 week ago

7/1:

IsaacMilarky commented 11 hours ago

7/3: