analyzer_plugin 套件提供了一個框架與支援程式碼,用於建立自訂外掛程式,以擴展 Dart 分析伺服器的功能。它讓開發者能夠建構在 IDE 與編輯器中提供即時程式碼分析、linting 與重構功能的工具。此套件對於希望提升 Dart 專案程式碼品質與開發者體驗的貢獻者而言至關重要。它能與更廣泛的 Dart SDK 生態系統無縫整合,並支援包括 Android、iOS、macOS、Windows 及 Linux 在內的多個平台。
適用情境
自定義程式碼分析規則
IDE 結合用於程式碼檢查
即時重構建議
增強的程式碼導航
Dart 工具外掛開發
主要特色
分析伺服器外掛框架
對自訂 lint 规則的支援
與 IDE 與編輯器的整合
跨平台相容性
可擴展的架構
適合對象
Dart語言工具開發者
IDE 插件創作者
程式碼品質提升團隊
高階 Flutter/Dart 貢獻者
使用建議
需要熟悉分析伺服器
僅限 Dart/Flutter 開發環境
可能需要深入理解 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).
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).