Skip to content

dart-lang/pana

Folders and files

NameName
Last commit message
Last commit date

Latest commit

141c597 · Mar 18, 2025
Mar 3, 2025
Jul 5, 2024
Mar 18, 2025
Mar 17, 2025
May 17, 2024
Jan 6, 2023
Jun 25, 2020
Sep 7, 2021
Mar 17, 2025
Aug 10, 2021
Apr 2, 2021
Jun 19, 2024
Oct 30, 2024
Sep 23, 2022
Jul 26, 2017
Mar 18, 2025

Build Status

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:

Used by the Dart Package site.

Use as an executable

Installation

dart pub global activate pana

Usage

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:
      --dart-sdk               The directory of the Dart SDK.
      --flutter-sdk            The directory of the Flutter SDK.
      --exit-code-threshold    The exit code will indicate if (max - granted points) > threshold.
  -j, --json                   Output log records and full report as JSON.
      --hosted-url             The server that hosts <package>.
                               (defaults to "https://pub.dev")
  -l, --line-length            The line length to use with dart format.
      --hosted                 Download and analyze a hosted package (from https://pub.dev).
      --[no-]dartdoc           Run dartdoc and score the package on documentation coverage.
                               (defaults to on)
      --dartdoc-version        The dartdoc version to use: `sdk`, `latest` (default) or `<version constraint>`.