fast_equatable_lint 0.3.0 copy "fast_equatable_lint: ^0.3.0" to clipboard
fast_equatable_lint: ^0.3.0 copied to clipboard

This is a set of rules to make classes using FastEquatable more maintainable. We validate that every fields in an FastEquatable class is linked to the hashParameters getter.

fast_equatable_lint #

This package uses the custom_lint package.

This is effectively a fork of equatable_lint with dependencies and detection of fast_equatable.

Setup #

  • In your pubspec.yaml, add these dev_dependencies :
dev_dependencies:
  custom_lint:
  fast_equatable_lint:
  • In your analysis_options.yaml, add this plugin :
analyzer:
  plugins:
    - custom_lint
  • Run flutter pub get or dart pub get in your package

  • Possibly restart your IDE

Setup CI #

flutter analyse or dart analyse don't use this custom rule when checking your code

If you want to analyse your code with this rule in your CI, add a step that run flutter pub run custom_lint or dart run custom_lint

1
likes
140
points
87
downloads

Publisher

verified publisherfabi.online

Weekly Downloads

This is a set of rules to make classes using FastEquatable more maintainable. We validate that every fields in an FastEquatable class is linked to the hashParameters getter.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

analyzer, analyzer_plugin, collection, custom_lint_builder, fast_equatable, source_gen

More

Packages that depend on fast_equatable_lint