models library

Classes

CodeProblem
ComponentNames
ConstraintTypes
DartFileSummary
DartPlatform
DependencyTypes
Health
LicenseFile
LicenseNames
Maintenance
Describes the maintenance status of the package.
Outdated
The json output from pub outdated --json.
OutdatedPackage
PanaRuntimeInfo
PkgDependency
PkgResolution
PlatformNames
Report
Models the 'new-style' pana report.
ReportSection
Stats
Suggestion
SuggestionCode
SuggestionLevel
Summary
VersionDescriptor

Constants

healthErrorMultiplier → const double
NOTE: In case these change, update README.md
0.75
healthHintMultiplier → const double
0.995
healthWarningMultiplier → const double
0.95

Functions

calculateBaseHealth(int analyzerErrorCount, int analyzerWarningCount, int analyzerHintCount) double
Returns the part of the health score that is calculated from the number of dartanalyzer items. Other penalties will be deduced from this base score (e.g. platform conflict, dartdoc coverage).

Enums

PlatformUse
VersionResolutionType