countering-bean-counting / bonnyci_ci-plunder

CI usage data plundering
2 stars 0 forks source link

Determine metrics for measuring code quality #49

Open missaugustina opened 7 years ago

missaugustina commented 7 years ago

We can pull some of these from the Sonarqube tool, some might be available via the Github api, others we might need to do additional work on our own to calculate:

missaugustina commented 7 years ago

LOC/# files/# blanks/# comments - per language, per file. Allows snapshots in time. Distribution of commits across files (ie what files were changed most often based by commit history)

https://github.com/adamtornhill/code-maat

missaugustina commented 7 years ago

CLI utility for simple LOC based metrics - https://github.com/AlDanial/cloc

missaugustina commented 7 years ago

To clarify, there are two definitions of the word "quality". The value identified for this project refers to quality as a "degree of excellence". However, the metrics identified in this issue will only actually measure "distinctive characteristics". These metrics will only be useful as parameters to feed into a predictive model. If there is a high correlation between these metrics and repositories that use CI, then we can potentially predict what repos are likely to adopt CI in the near future (or repos that may be using CI but we can't easily identify it through other methods).

missaugustina commented 7 years ago