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

套件詳情v4.0.0

surf_lint_rules

Surf 公司的 Dart 和 Flutter 項目 lint 規則。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
2790
喜歡數
57
Pub 分數
150

安裝套件

flutter pub add surf_lint_rules

套件介紹

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

一組專為 Surf 軟體開發公司 Dart 和 Flutter 專案量身打造的自訂 lint 规則。這些規則強制執行一致的程式碼風格,提升程式碼品質,並符合 Surf 內部的最佳實務。此套件可透過 pub 套件管理員無縫整合至 Flutter 工作流程中,並設計為可在 Android、iOS、Web、macOS、Windows 及 Linux 等所有主要平台運作。它幫助團隊在開發初期即發現常見問題,以維持程式碼庫的乾淨、易讀與可維護性。

適用情境

  • 強制執行團隊範圍的編碼標準
  • 提高程式碼可讀性和一致性
  • 在CI/CD流程中自動化程式碼品質檢查
  • 支援大規模Flutter專案維護
  • 與現有 linter 配置整合

主要特色

  • Surf 指南特有的自定 lint 規則
  • 跨平台相容性
  • 透過 pub add 輕鬆整合
  • 可擴充的規則設定
  • GitHub 倉儲中的完整文件

適合對象

  • Flutter 團隊在 Surf 或類似組織中
  • 需要嚴格代碼質量控制的項目
  • 採用標準化 linting 實踐的團隊
  • 需要自動化程式碼分析的 CI/CD 環境
  • 專注於長期代碼庫健康的開發者

使用建議

  • 需要 Dart SDK 版本相容性
  • 可能需要為非 Surf 團隊進行客製化
  • 取決於更廣泛的 linter 套件
  • 不適用於沒有linting基礎設施的專案
  • 規則可能會隨著Surf的內部標準而演變

原始 README

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

Surf Lint Rules

Build Status Pub Version Pub Likes Pub popularity Dart Platform Flutter Platform

Overview

Lint rules used by Surf.

Const rules
Error rules
Style rules
Pub rules
Analyzer. Errors

Installation

Add surf_lint_rules as dependency to your pubspec.yaml

dependencies:
  surf_lint_rules: $currentVersion$

At this moment, the current version of surf_lint_rules is surf_lint_rules version.

Example

You can use both stable and dev versions of the package listed above in the badges bar.

Create analysis_options.yaml file

include: package:surf_lint_rules/analysis_options.yaml

See the dartanalyzer executing the lint checks in you favorite editor.

Changelog

All notable changes to this project will be documented in this file.

Issues

To report your issues, file directly in the Issues section.

Contribute

If you would like to contribute to the package (e.g. by improving the documentation, fixing a bug or adding a cool new feature), please read our contribution guide first and send us your pull request.

Your PRs are always welcome.

How to reach us

Please feel free to ask any questions about this package. Join our community chat on Telegram. We speak English and Russian.

Telegram

License

Apache License, Version 2.0

所屬分類

依賴

依賴清單 1 項

原始碼儲存庫

使用此套件的專案