felangel / pana

Package ANAlysis with Strong mode support

Home Page:https://pub.dev/packages/pana

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

> 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 dartfmt.
      --hosted                 Download and analyze a hosted package (from https://pub.dev).
      --[no-]warning           Shows the warning message before potentially destructive operation.
                               (defaults to on)

About

Package ANAlysis with Strong mode support

https://pub.dev/packages/pana

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Dart 100.0%