pana: ^0.15.4 copied to clipboard
Evaluate the health and quality of a Dart package
A library for analyzing Dart packages. It invokes executables from the Dart SDK (or from the Flutter SDK if the package uses Flutter).
Reports are created in the following categories:
- Follow Dart conventions
- Provide documentation
- Support multiple platforms
- Pass static analysis
- Support up-to-date dependencies
Used by the Dart Package site.
Use as an executable #
> pub global activate pana
You can specify either a package (+ version) or a local directory to analyze:
Usage: pana [<options>] --hosted <published package name> [<version>] pana [<options>] <local directory> Options: --flutter-sdk The directory of the Flutter SDK. -j, --json Output log records and full report as JSON. --hosted-url The server that hosts <package>. (defaults to "https://pub.flutter-io.cn") -l, --line-length The line length to use with dartfmt. --hosted Download and analyze a hosted package (from https://pub.flutter-io.cn). --[no-]warning Shows the warning message before potentially destructive operation. (defaults to on)