Skip to content
This repository was archived by the owner on Jan 26, 2026. It is now read-only.
This repository was archived by the owner on Jan 26, 2026. It is now read-only.

Add refena_lints #3

@Tienisto

Description

@Tienisto

Adding a lint package improves the developer experience and overall software quality.

Ideas:

Dependency / Relationship:

  • use_watch_inside_rebuildable_providers: Rebuildable providers (ViewProvider, FutureProvider, StreamProvider) must use ref.watch instead of ref.read to read the value of other providers
  • use_accessor_to_watch_rebuildable_providers: Inside non-rebuildable providers, use ref.accessor to obtain the newest state (instead of ref.read) of other providers
  • use_view_provider_to_watch_rebuildable: Use ViewProvider instead of Provider when watching a rebuildable provider

Redux:

  • only_use_local_redux_actions_in_isolated_redux: Only use scoped redux actions (no external, no GlobalAction or WatchAction) for providers marked with @IsolatedRedux
  • only_use_local_redux_actions: the stricter opt-out lint, allow global side effects only when marked with @ReduxWithSideEffects

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions