Closed axel-op closed 3 years ago
Another thing is that the penality of 100.0 given on this line is never applied because this suggestion is added to the "general" suggestion list and not to the maintenance suggestion list. And no score is calculated based on this "general" suggestion list.
Ah, good points here. Curious: do you know about a package on pub that has this?
@isoos Not at all, I'm sorry.
On this line: https://github.com/dart-lang/pana/blob/master/lib/src/package_analyzer.dart#L127, when a pubspec file cannot be found or parsed, health and maintenance scores are both returned with a value of 100.
This is because a
Summary
widget is returned with nullmaintenance
andhealth
fields, so the_calculateScore
function (https://github.com/dart-lang/pana/blob/master/bin/pana.dart#L213) automatically set these two scores to 100.