Skip to content
pubscout

saropa_lints

17.2.0, released 8 days ago by saropa.com

Static analysis suite with 2300+ custom lint rules for Flutter and Dart

$ flutter pub add saropa_lints
Source repository

What it does

Provides over 2,300 custom lint rules and quick fixes to detect memory leaks, runtime crashes, security vulnerabilities, and accessibility issues. Integrates with the Dart analysis server and includes a VS Code extension for project health and rule management.

AI-written summary of version 17.1.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You want to enforce security, performance, and lifecycle rules beyond standard lints
  • You want to catch memory leaks like undisposed controllers or setState after dispose
  • You are using VS Code and want an extension to triage violations and track code health

Skip it when

  • Your project uses a Dart SDK version below 3.11.0
  • You prefer an extremely minimal lint set with zero custom rules

Strengths

  • Massive rule coverage spanning security, accessibility, performance, and lifecycle
  • Provides tier presets (essential, recommended, professional, comprehensive, pedantic)
  • Includes library-specific rules for popular packages like Riverpod, Bloc, GetX, and Firebase

Weaknesses

  • Large number of rules may introduce high noise or friction initially without careful tier selection
  • Tied ecosystem with its own companion VS Code extension for full management features

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
8

Add as a dev dependency and include the chosen tier preset in analysis_options.yaml.

# analysis_options.yaml
include: package:saropa_lints/tiers/recommended.yaml

Alternatives

Packages that do the same job and could replace saropa_lints.

  • flutter_lints

    You want the official, lightweight, zero-configuration linter recommended by the Flutter team.

  • lints

    You want the official Dart linting rules with minimal overhead.

Works with

Packages commonly used together with saropa_lints: ones it builds on, ones built on it, and its own family.