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

套件詳情v6.1.0

lints

官方 Dart 程式碼檢查規則。定義了 Dart 團隊建議的「核心」與「推薦」程式碼檢查集合。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
1250萬
喜歡數
269
Pub 分數
160

安裝套件

flutter pub add lints

套件介紹

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

官方 Dart lints 套件提供了一組由 Dart 團隊推薦的精選 lint 規則,以確保在 Dart 項目中強制執行一致、乾淨且符合習慣的程式碼風格。它包含 'core' 和 'recommended' 兩種 lint 規則,有助於發現常見錯誤、提升可讀性,並促進 Dart 開發中的最佳實務。透過將此套件整合至您的專案中,您能確保與 Dart 持續演進的標準保持一致,並在各平台維持高品質的程式碼。

適用情境

  • 在團隊間強制執行一致的程式碼風格
  • 在開發早期識別潛在的錯誤
  • 提升程式碼的可讀性和可維護性
  • 與 CI/CD 流水線整合以進行自動化檢查
  • 支援大規模 Dart 項目治理

主要特色

  • 由 Dart 團隊官方維護
  • 包含核心與推薦的 lint 規則
  • 透過 Flutter pub add 輕鬆整合
  • 跨平台相容性
  • 可透過 analysis_options.yaml 進行設定

適合對象

  • 尋求標準化編碼實踐的 Dart 開發人員
  • 致力於程式碼品質一致性的團隊
  • 在多個平台上使用 Flutter 或純 Dart 的項目
  • 需要自動化程式碼分析的 CI/CD 環境

使用建議

  • 隨著Dart的發展,可能需要更新
  • 某些規則可能需要針對特定工作流程進行自訂
  • 初始設定需要在 analysis_options.yaml 中進行設定
  • 無法取代徹底的測試或程式碼審查

原始 README

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

Overview

This repository is home to various Dart packages under the dart.dev publisher.

Packages

Package Description Issues Version
args Library for defining parsers for parsing raw command-line arguments into a set of options and values using GNU and POSIX style options. issues pub package
async Utility functions and classes related to the 'dart:async' library. issues pub package
characters String replacement with operations that are Unicode/grapheme cluster aware. issues pub package
collection Collections and utilities functions and classes related to collections. issues pub package
convert Utilities for converting between data representations. Provides a number of Sink, Codec, Decoder, and Encoder types. issues pub package
crypto Implementations of SHA, MD5, and HMAC cryptographic functions. issues pub package
fixnum Library for 32- and 64-bit signed fixed-width integers with consistent behavior between native and JS runtimes. issues pub package
lints Official Dart lint rules. Defines the 'core' and 'recommended' set of lints suggested by the Dart team. issues pub package
logging Provides APIs for debugging and error logging, similar to loggers in other languages, such as the Closure JS Logger and java.util.logging.Logger. issues pub package
os_detect Platform independent OS detection. issues pub package
path A string-based path manipulation library. issues pub package
platform A pluggable, mockable platform information abstraction for Dart. issues pub package
typed_data Utility functions and classes related to the dart:typed_data library. issues pub package

Publishing automation

For information about our publishing automation and release process, see https://github.com/dart-lang/ecosystem/wiki/Publishing-automation.

For additional information about contributing, see our contributing page.

所屬分類

原始碼儲存庫

使用此套件的專案

所在榜單