Search packages, repositories and app categories

Package detailsv2.0.0

solid_lints

Lints for Dart and Flutter based on software industry standards and best practices.

30-day downloads
5.6K
Likes
57
Pub points
150

Install package

flutter pub add solid_lints

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

solid_lints is a Dart and Flutter linter package that enforces industry-standard best practices for code quality, readability, and maintainability. It provides a curated set of lint rules aligned with modern software engineering principles, helping developers write clean, consistent, and robust code. The package is designed to be used in Flutter projects to catch common issues early, improve team collaboration, and promote long-term code health. It integrates seamlessly via pub.dev and is maintained by solid.software.

Use cases

  • Enforcing consistent coding style across teams
  • Improving code readability and maintainability
  • Automatically detecting anti-patterns in Dart/Flutter code
  • Supporting CI/CD pipelines with static analysis
  • Guiding new developers with proven best practices

Key features

  • Rules based on industry standards
  • Comprehensive coverage of Dart and Flutter best practices
  • Easy integration via pub.dev
  • Regularly updated to reflect evolving standards
  • Clear, actionable lint messages

Suitable for

  • Flutter development teams
  • Projects prioritizing code quality
  • New developers learning Dart best practices
  • Large-scale applications requiring consistency
  • CI/CD environments

Considerations

  • May require initial configuration to align with project needs
  • Some rules might conflict with personal or team preferences
  • Requires understanding of linting concepts
  • Not all rules may apply to every project type
  • May need adjustments when upgrading versions

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

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)

Categories

Dependencies

Dependency list 7 items

Source repository

Projects using this package