Pana는 Dart 패키지의 건강 상태, 품질 및 유지보수 가능성을 평가하는 Dart 패키지 분석 도구입니다. 코드 구조, 종속성, 문서화 및 잠재적 문제에 대한 세부 보고서를 생성합니다. 개발자와 유지보수자들을 위해 설계되었으며, 패키지가 최선의 실천 방식을 따르고 공개 배포에 적합한지 확인하는 데 도움을 줍니다. Pana는 명령줄 도구와 CI/CD 파이프라인을 통해 개발 워크플로우에 원활하게 통합됩니다. Android, iOS, macOS, Windows 및 Linux를 포함한 모든 주요 플랫폼을 지원합니다.
사용 사례
배포 전 패키지 품질 평가
코드 및 종속성 문제 식별
문서화 및 유지보수성 향상
CI/CD 파이프라인에 통합
개발 중 패키지 건강 상태 검증
주요 기능
포괄적인 헬스 스코어링
의존성 분석
문서 품질 검사
문제 탐지 및 보고
크로스 플랫폼 지원
적합한 대상
Dart 패키지 유지보수자
오픈소스 기여자
CI/CD 자동화
품질 보증 팀
Flutter를 사용하는 개발 팀
고려 사항
명령줄 사용이 필요합니다
보고서는 패키지 메타데이터에 의존합니다
사용자 정의 규칙을 위한 구성이 필요할 수 있습니다
런타임 도구가 아님
자동 워크플로우에서 가장 잘 사용됩니다
원본 README
연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.
A library for analyzing Dart packages. It invokes executables from the Dart SDK
(or from the Flutter SDK if the package uses Flutter).
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). Usethiswhen the package is located in a subdirectory so pana can copy and analyze the entire project tree.