bitNathan / ECE46100-phase-2

Purdue ECE 46100 Phase 2 project, custom npm registry
GNU Lesser General Public License v2.1
0 stars 1 forks source link

Fraction of Dependencies Metric #29

Open bitNathan opened 1 month ago

bitNathan commented 1 month ago

New metric to be added to phase 1 code The fraction of dependencies that are pinned to at least a specific major+minor version (see phase 2 specs).

MadSons commented 1 month ago

The fraction of dependencies that are pinned to at least a specific major+minor version, e.g., version 2.3.X of the dependency. (If a package has zero dependencies, it should receive a 1.0 rating. Now, suppose a package has two dependencies, one that is constrained to a particular major+minor version and another that is not. In this case, one of the two dependencies satisfies the requisite level of pinning, and so the fraction of dependencies is 1 in 2 or a score of ½ = 0.5.3

MadSons commented 1 month ago

New Metric, should be implemented similarly to the other 5 metrics.