You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Package version score does not correspond to the % of package versions found? Am I misunderstanding what the correlation should be? If 97% have versions then shouldn't the package version score be higher?
Proposal: Fix all Ratio: lines to use the proper division in which both numbers are converted to a float32. This fix will encompass more than just the "package version" logic. I'm glad to put in a PR. Just LMK.
The text was updated successfully, but these errors were encountered:
In issue #22, it was pointed out that:
After some testing, the bug seems to be here:
sbom-scorecard/pkg/spdx/spdx_report.go
Lines 74 to 84 in c3d4dd8
Line 82 should be:
Dividing an integer by an integer leads to zero, which is not the intended behavior, IIUC.
Here is a small snippet of Go code (in the Go Playground) explaining this bug: https://go.dev/play/p/gybFsSduxZa
Proposal: Fix all
Ratio:
lines to use the proper division in which both numbers are converted to afloat32
. This fix will encompass more than just the "package version" logic. I'm glad to put in a PR. Just LMK.The text was updated successfully, but these errors were encountered: