mad_lint 2.0.0 copy "mad_lint: ^2.0.0" to clipboard
mad_lint: ^2.0.0 copied to clipboard

A comprehensive Dart/Flutter lint plugin with rules for state management, resource disposal, and code quality.

2.0.0 #

Breaking Changes: #

  • Migrated from custom_lint to analysis_server_plugin
  • Minimum Dart SDK version bumped to 3.10.0
  • no_magic_numbers rule now enforces stricter checks and no longer allows getters like 100.isNaN

New Rules: #

  • no_bang_operator - prohibits the use of the null assertion operator (!)
  • use_wildcard_for_unused_parameters - enforces using wildcard imports for specific packages

1.3.0 #

New rules: #

  • stream_subscription_must_be_disposed — ensures all stream subscriptions are properly disposed.
  • required_full_props — ensures all final fields are included in props when using Equatable.

Fixes: #

-Fixed the full_copy_with_for_state fix: removed the extra ? in the second level of nesting.

  • Improved EnsureDisposeCalled rule: now correctly detects .dispose() calls inside nested blocks like if, try, etc.

1.2.0 #

  • Bump analyzer to 7.0.0
  • Bump custom_lint to 0.7.5-stable

1.1.0 #

  • Refactor code
  • New rules: no_magic_number, ensure_dispose_called, new_line_before_return

1.0.0 #

  • Initial version.
0
likes
150
points
9
downloads

Documentation

API reference

Publisher

verified publishermadbrains.ru

Weekly Downloads

A comprehensive Dart/Flutter lint plugin with rules for state management, resource disposal, and code quality.

Repository (GitHub)
View/report issues

Topics

#lint #analyzer #flutter #static-analysis

License

MIT (license)

Dependencies

analysis_server_plugin, analyzer, analyzer_plugin, args, collection

More

Packages that depend on mad_lint