搜索插件、代码仓与 APP 分类

插件详情v6.1.0

lints

官方 Dart 代码检查规则。定义了由 Dart 团队建议的“核心”和“推荐”代码检查集合。

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
1250万
喜欢数
269
Pub 分数
160

安装插件

flutter pub add lints

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

官方 Dart lints 包提供了由 Dart 团队推荐的一组精心挑选的 lint 规则,旨在 across 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.

所属分类

源码仓库

使用此插件的项目

所在榜单