搜索插件、代码仓与 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 项

源码仓库

使用此插件的项目