Skip to main content

view_model_lint 1.3.3 copy "view_model_lint: ^1.3.3" to clipboard
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_spec no longer reports a custom ViewModelFactory constructed at the call. It resolves by its own key() and often takes per-call constructor arguments, so this is the intended legacy usage.
  • view_model_undisposed_binding no 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, and view_model_generator stay 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, and view_model_temporary_spec.
  • Add the opt-in view_model_cached_lookup info for cached queries. Enable it through the plugin's diagnostics map.
  • view_model_cached_instance also 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, and view_model_temporary_spec.
  • Add the view_model_lint_fix batch command (dart pub global run view_model_lint:fix [--dry-run]), because dart fix cannot apply analyzer plugin fixes.
  • Add RULES.md with good and bad examples for every rule.
  • This release ships only view_model_lint; view_model, view_model_annotation, and view_model_generator stay 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 for aliveForever.

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.
0
likes
140
points
85
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Analyzer plugin for safe ViewModel ownership, specs, and dependency composition.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

analysis_server_plugin, analyzer, analyzer_plugin

More

Packages that depend on view_model_lint