analysis_lints
1.1.1, released 8 days ago by an unverified publisher
Unified lint rules for Flutter and Dart projects
What it does
Provides a predefined set of analysis rules that can be included in a project’s analysis_options.yaml. It centralises lint configuration and keeps code style consistent across multiple projects.
AI-written summary of version 1.1.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want a consistent code style across several projects
- You need to enforce quality standards without writing your own lints
- You want to reduce setup time for new projects by reusing a ruleset
Skip it when
- You need custom lints that are not part of the package
- You are already using another comprehensive lints package like flutter_lints and want to avoid duplicate rules
Strengths
- Standardised ruleset that works for both Flutter and pure Dart
- Easy to add via dev_dependencies and include in analysis_options
- Updates propagate to all projects that depend on it
Weaknesses
- Only provides lint rules, no runtime functionality
- May conflict with other lints packages if both are included
- Requires Dart SDK >=3.14.0 and Flutter >=3.50.0
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 2
Add to dev_dependencies in pubspec.yaml and include package in analysis_options.yaml
dev_dependencies:\n analysis_lints: ^1.1.1\n\n# analysis_options.yaml\ninclude: package:analysis_lints/analysis_options.yamlAlternatives
Packages that do the same job and could replace analysis_lints.
- very_good_analysis
Lint rules for Dart and Flutter used internally at Very Good Ventures.
91Compare - leancode_lint
An opinionated set of high-quality, robust, and up-to-date lint rules used at LeanCode.
83Compare - saropa_lints
Static analysis suite with 2300+ custom lint rules for Flutter and Dart
76Compare - lintorium
A set of strict lint rules for Dart projects.
55Compare
Works with
Packages commonly used together with analysis_lints: ones it builds on, ones built on it, and its own family.