solid_lints
2.0.0, released 6 weeks ago by solid.software
Solid Lints provides a comprehensive set of Dart and Flutter lint rules based on industry standards.
What it does
It configures the analyzer with a curated set of lint rules to enforce code quality and best practices. The package includes rules for production code and a separate set for test code.
AI-written summary of version 2.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want stricter static analysis for a Dart or Flutter project
- You need a single source of truth for lint rules across teams
- You want to enforce industry‑standard coding guidelines
Skip it when
- You already use another linter configuration that covers all required rules
- You prefer minimal linting and want to avoid the additional rule set
Strengths
- Broad rule set covering many common issues
- Regular updates with new rules and bug fixes
- Clear documentation and easy integration
Weaknesses
- May introduce new lint errors on upgrade
- Requires updating analysis_options.yaml and plugin version
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 7
Add to dev_dependencies, include analysis_options.yaml and plugin entry in analysis_options.yaml
```yaml
dev_dependencies:
solid_lints: ^2.0.0
analysis_options:
include: package:solid_lints/analysis_options.yaml
plugins:
solid_lints: ^2.0.0
```Alternatives
Packages that do the same job and could replace solid_lints.
- flutter_lints
Official Flutter linter with a smaller rule set
83Compare - lints
General Dart linter with a moderate rule set
86Compare
Works with
Packages commonly used together with solid_lints: ones it builds on, ones built on it, and its own family.
- analyzersolid_lints depends on itPerforms static analysis of Dart code for tool integration and embedding.
- yamlsolid_lints depends on itA Dart library for parsing YAML documents into Dart data structures.
- globsolid_lints depends on itA file and directory globbing library that supports Bash-style path matching and listing.
- equatablesolid_lints depends on itProvides value‑based equality for Dart objects without manual == and hashCode.
- analysis_server_pluginsolid_lints depends on itFramework and support code for building plugins for the Dart analysis server.