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

套件詳情v14.7.0

analyzer

此套件提供一個庫,可執行 Dart 程式碼的靜態分析。

AndroidiOSmacOSWindowsLinux
近 30 天下載
2190萬
喜歡數
327
Pub 分數
130

安裝套件

flutter pub add analyzer

套件介紹

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

分析器套件提供了一個強大的程式庫,可用於對 Dart 程式碼執行靜態分析,讓開發人員能在執行前偵測潛在問題、強制執行編碼標準並提升程式碼品質。它支援解析、類型檢查與 linting,對於 IDE、linter 及程式碼格式化工具而言至關重要。此套件由 Dart 團隊開發,能無縫整合至所有主要平台的開發工作流程中。

適用情境

  • 程式碼 linting
  • 靜態錯誤檢測
  • IDE 集成
  • 重構支援
  • 程式碼品質強制執行

主要特色

  • 語法與語意分析
  • 類型推斷驗證
  • 自定規則建立
  • 跨平台相容性
  • 與建構系統的整合

適合對象

  • Dart 工具開發者
  • IDE 插件創作者
  • 程式碼品質團隊
  • 靜態分析工具
  • Lint 規則作者

使用建議

  • 需要理解 Dart 語言語義
  • 可能需要為自定規則進行設定
  • 大型代碼庫中的效能影響
  • 有限的執行時除錯功能
  • 取決於 SDK 版本相容性

原始 README

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

Dart

An approachable, portable, and productive language for high-quality apps on any platform

Dart is:

  • Approachable: Develop with a strongly typed programming language that is consistent, concise, and offers modern language features like null safety and patterns.

  • Portable: Compile to ARM, x64, or RISC-V machine code for mobile, desktop, and backend. Compile to JavaScript or WebAssembly for the web.

  • Productive: Make changes iteratively: use hot reload to see the result instantly in your running app. Diagnose app issues using DevTools.

Dart's flexible compiler technology lets you run Dart code in different ways, depending on your target platform and goals:

  • Dart Native: For programs targeting devices (mobile, desktop, server, and more), Dart Native includes both a Dart VM with JIT (just-in-time) compilation and an AOT (ahead-of-time) compiler for producing machine code.

  • Dart Web: For programs targeting the web, Dart Web includes both a development time compiler (dartdevc) and a production time compiler (dart2js).

Dart platforms illustration

License & patents

Dart is free and open source.

See LICENSE and PATENT_GRANT.

Using Dart

Visit dart.dev to learn more about the language, tools, and to find codelabs.

Browse pub.dev for more packages and libraries contributed by the community and the Dart team.

Our API reference documentation is published at api.dart.dev, based on the stable release. (We also publish docs from our beta and dev channels, as well as from the primary development branch).

Building Dart

If you want to build Dart yourself, here is a guide to getting the source, preparing your machine to build the SDK, and building.

There are more documents in our repo at docs.

Contributing to Dart

The easiest way to contribute to Dart is to file issues.

You can also contribute patches, as described in Contributing.

Roadmap

Future plans for Dart are included in the combined Dart and Flutter roadmap on the Flutter wiki.

所屬分類

依賴

依賴清單 12 項

原始碼儲存庫

使用此套件的專案