pana library

Classes

AnalysisResult
NOTE: the content of the class is experimental, clients should not rely on it yet. The normalized and verified references and derived values of the analysis.
DartSdkInfo
InspectOptions
License
Describes the details of the license detection results. NOTE: the content of the class is experimental, clients should not rely on it yet.
LicenseFile
LicenseNames
PackageAnalyzer
PanaProcessResult
PanaRuntimeInfo
PanaTags
The tags that pana may assign to an analyzed package.
ProcessedScreenshot
A processed screenshot contains paths with processed images as stored using storeResource as passed to PackageAnalyzer.inspectPackage.
ProcessOutput
The output of a process as String or byte stream.
Pubspec
Report
Models the 'new-style' pana report.
ReportSection
ReportSectionId
Repository
NOTE: the content of the class is experimental, clients should not rely on it yet. To get successful verification, the remote repository:
SdkConfig
Configuration class for the SDKs.
SdkConstraintStatus
Detailed support coverage for the SDK constraint.
Summary
ToolEnvironment
UrlChecker
Checks if an URL is valid and accessible.
UrlProblem
UrlProblemCodes
Possible values for UrlProblem.problem.
UrlStatus
The URL's parsed and queried status.

Enums

ReportStatus
RepositoryProvider
The identifier of repository provider, which could influence how relative URLs are resolved.

Constants

packageVersion → const String

Functions

downloadPackage(String package, String? version, {required String destination, String? pubHostedUrl}) Future<void>
Downloads package and unpacks it into destination
exampleFileCandidates(String package) List<String>
Returns the candidates in priority order to display under the 'Example' tab.
minStatus(ReportStatus? a, ReportStatus? b) ReportStatus?
Returns the lowest status of a and b ranked in the order of the enum.
renderSimpleSectionSummary({required String title, required String? description, required int grantedPoints, required int maxPoints}) String
Renders a summary block for sections that can have only a single issue.
runConstrained(List<String> arguments, {String? workingDirectory, Map<String, String>? environment, Duration? timeout, int? maxOutputBytes, bool throwOnError = false, FutureOr<bool> retryIf(PanaProcessResult)?, RetryOptions? retryOptions}) Future<PanaProcessResult>
Runs the arguments as a program|script + its argument list.
summarizeStatuses(Iterable<ReportStatus> statuses) ReportStatus
Returns the lowest of statuses to represent them.
yamlToJson(String? yamlContent) Map<String, Object?>?

Exceptions / Errors

ToolException