view_model_lint 1.3.3
view_model_lint: ^1.3.3 copied to clipboard
Analyzer plugin for safe ViewModel ownership, specs, and dependency composition.
1.3.3 #
view_model_temporary_specno longer reports a customViewModelFactoryconstructed at the call. It resolves by its ownkey()and often takes per-call constructor arguments, so this is the intended legacy usage.view_model_undisposed_bindingno longer reports a binding held by a top-level variable or static field, which is an app-wide owner.- This release ships only
view_model_lint;view_model,view_model_annotation, andview_model_generatorstay at 1.3.1.
1.3.2 #
- Add six warnings:
view_model_listen_in_build,view_model_instance_handoff,view_model_identity_collision,view_model_selector_with_watch,view_model_undisposed_binding, andview_model_temporary_spec. - Add the opt-in
view_model_cached_lookupinfo for cached queries. Enable it through the plugin'sdiagnosticsmap. view_model_cached_instancealso reports VMs from host extensions and single cached queries.- Add IDE quick fixes for
view_model_cached_instance,view_model_alive_forever_key,view_model_selector_with_watch, andview_model_temporary_spec. - Add the
view_model_lint_fixbatch command (dart pub global run view_model_lint:fix [--dry-run]), becausedart fixcannot apply analyzer plugin fixes. - Add
RULES.mdwith good and bad examples for every rule. - This release ships only
view_model_lint;view_model,view_model_annotation, andview_model_generatorstay at 1.3.1.
1.3.1 #
- Remove
view_model_parameterized_spec_key. Parameterized specs may omit a key without a diagnostic. Keep the four remaining warnings, including the explicit key requirement foraliveForever.
1.3.0 #
- Add a native analyzer plugin with five ViewModel usage warnings.
- Support IDE diagnostics,
dart analyze, per-rule configuration, and ignores. - Add rule regression tests and real analyzer-process integration tests.
- Support analyzer 8.4 through 10.x, including native plugin loading on newer Dart SDKs.