Lint rules by framework domain

Domains group rules by the package they apply to. Turn a whole domain on in falcon.json under linter.domains; see the configuration reference.

flutter

70 rules

Widget construction, lifecycle, and Flutter framework APIs.

test

8 rules

Dart and Flutter test suites: assertions, matchers, and test structure.

bloc

18 rules

Blocs and Cubits from package:bloc: events, states, and emit discipline.

riverpod

16 rules

Providers and refs from package:riverpod and flutter_riverpod.

provider

7 rules

package:provider: reading, watching, and disposing providers.

flutter_hooks

6 rules

Hook rules for package:flutter_hooks.

  • avoid-conditional-hooksrecommendedflutter_hooks

    Flags hook calls in conditional branches, short-circuit operands, and loops.

  • avoid-hooks-outside-buildrecommendedflutter_hooks

    Flags confirmed Flutter hooks outside hook builds, custom hooks, and HookBuilder/HookConsumer builders.

  • avoid-misused-hooksrecommendedflutter_hooks

    Flags confirmed Flutter hooks called directly in non-hook Flutter widget builds.

  • avoid-unnecessary-hook-widgetsflutter_hooks

    Flags confirmed hook widgets and HookBuilder callbacks that do not use hooks.

  • prefer-use-callbackflutter_hooks

    Prefer useCallback for synchronous memoized function literals.

  • prefer-use-memoflutter_hooks

    Prefer memoizing freshly allocated collection values used as hook keys.

equatable

5 rules

Value equality with package:equatable.