搜索插件、代码仓与 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 项

源码仓库

使用此插件的项目

所在榜单