FLUTTER ECOSYSTEM

solid-software/solid_lints

🟧 基于软件行业标准和最佳实践的 Dart 和 Flutter 代码检查规则。

solid_lints 项目封面
Stars
42
Forks
24
最近推送(UTC)
2026年9月10日
项目状态
未归档
Solid Software GitHub avatar
GITHUB Organization

Solid Software ↗

United States of America官方网站 ↗
语言Dart

此仓库发布的插件

使用的依赖

依赖清单 11 项

原始 README

以下为英文项目原文快照,最新内容请访问 GitHub。

展开 / 收起项目 README

Solid Lints

style: solid $solid_lints

Flutter/Dart lints configuration based on software engineering industry standards (ISO/IEC, NIST) and best practices.

Documentation

For more detailed information and guidelines on using Solid Lints, please refer to the documentation:

  • https://lints.solid.software

Usage

Add dependency in your pubspec.yaml:

dev_dependencies:
  solid_lints: <INSERT LATEST VERSION>

Enable the plugin and include solid_lints in your project's top-level analysis_options.yaml:

include: package:solid_lints/analysis_options.yaml

plugins:
  solid_lints: <INSERT LATEST VERSION>

Also, you can use a specialized rule set designed for Dart tests. Add an analysis_options.yaml file under the test/ directory, and include the ruleset:

include: package:solid_lints/analysis_options_test.yaml

plugins:
  solid_lints: <INSERT LATEST VERSION>

Then you can see suggestions in your IDE or you can run checks manually:

dart analyze

Configuration

You can customize individual rule settings in your analysis_options.yaml:

plugins:
  solid_lints: <INSERT LATEST VERSION>

solid_lints:
  diagnostics:
    cyclomatic_complexity:
      max_complexity: 10
    avoid_non_null_assertion: true

Badge

To indicate that your project is using Solid Lints, you can use the following badge:

[![style: solid](https://img.shields.io/badge/style-solid-orange)](https://pub.dev/packages/solid_lints)