搜尋套件、儲存庫與 APP 分類

套件詳情v0.23.19

pana

PAckage aNAlyzer - 產生一份報告,總結 Dart 套件的健全性和品質。

AndroidiOSmacOSWindowsLinux
近 30 天下載
68.9萬
喜歡數
139
Pub 分數
140

安裝套件

flutter pub add pana

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

Pana 是一個 Dart 套件分析工具,用於評估 Dart 套件的健康狀況、品質與可維護性。它會產生關於程式碼結構、相依性、文件以及潛在問題的詳細報告。專為開發人員與維護者設計,協助確保套件符合最佳實務並準備好公開發佈。Pana 可透過命令列工具與 CI/CD 管道無縫整合至開發工作流程中。支援所有主要平台,包含 Android、iOS、macOS、Windows 與 Linux。

適用情境

  • 發布前評估軟體包品質
  • 識別程式碼和相依性問題
  • 改進文件和可維護性
  • 整合到CI/CD流程
  • 在開發過程中驗證套件的健康狀況

主要特色

  • 全面的健康評分
  • 依賴分析
  • 文件品質檢查
  • 問題檢測與報告
  • 跨平台支援

適合對象

  • Dart 套件維護者
  • 開源貢獻者
  • CI/CD 自動化
  • 品質保證團隊
  • 使用 Flutter 的開發團隊

使用建議

  • 需要命令列使用
  • 報告依賴於套件元資料
  • 可能需要為自定規則進行設定
  • 不是執行時工具
  • 最佳用於自動化工作流程

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

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")
      --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>`.
      --license-data           The path to the directory containing the SPDX license data.
      --project-root           The root directory path of the project (pub workspace or otherwise). Use this when the package is located in a subdirectory so pana can copy and analyze the entire project tree.

所屬分類

依賴

依賴清單 23 項

原始碼儲存庫

使用此套件的專案

所在榜單