freezed_lint
0.1.0, released 5 weeks ago by an unverified publisher
Linter plugin that enforces correct usage of freezed classes.
What it does
Provides two lints: one for missing mixin and one for missing private empty constructor. Quick‑fixes generate the correct code. It runs as an analyzer plugin, so no build_runner is required.
AI-written summary of version 0.1.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You use freezed for immutable data classes and want to catch common mistakes early
- You want IDE or command‑line feedback on missing mixins or constructors
Skip it when
- You are not using freezed in your project
- You prefer custom lint rules written in a different framework
Strengths
- No build_runner or code generation needed
- Quick‑fixes produce valid code
- Works out of the box with Dart 3.10+
Weaknesses
- Requires Dart 3.10 or later
- Only applies to freezed classes
- No support for other code‑gen libraries
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 3
Add `freezed_lint` under the `plugins` section of analysis_options.yaml. No pubspec dependency is needed.
plugins:\n freezed_lint: ^0.1.0Alternatives
Packages that do the same job and could replace freezed_lint.
- altive_lints
Analyzer-independent lint presets with Altive's recommended rule selection and optional Analyzer Plugin.
76Compare - saropa_lints
Static analysis suite with 2300+ custom lint rules for Flutter and Dart
76Compare - many_lints
A collection of custom lint rules, quick fixes, and code assists for Flutter and Dart.
65Compare - very_good_analysis
Lint rules for Dart and Flutter used internally at Very Good Ventures.
91Compare
Works with
Packages commonly used together with freezed_lint: ones it builds on, ones built on it, and its own family.
- analyzerfreezed_lint depends on itPerforms static analysis of Dart code for tool integration and embedding.
- analyzer_pluginfreezed_lint depends on itFramework for building plugins for the Dart analysis server
- analysis_server_pluginfreezed_lint depends on itFramework and support code for building plugins for the Dart analysis server.