context_plus_lint 1.0.1 copy "context_plus_lint: ^1.0.1" to clipboard
context_plus_lint: ^1.0.1 copied to clipboard

Custom lint rules for context_plus

context_plus.webp

Visit context-plus.sonerik.dev for more information and interactive examples.

context_plus_lint #

A set of custom lints and auto-fixes that improve the developer experience with context_plus.

  • Detect and auto-fix incorrect context.use() before receiving an assertion at runtime
  • Automatically create and assign context.use()d values to a new Ref
  • Detect and auto-fix incorrect Ref definitions

Installation #

Add context_plus_lint to your pubspec.yaml

flutter pub add --dev context_plus_lint
flutter pub add --dev custom_lint

Update the analysis_options.yaml to include

analyzer:
    plugins:
    - custom_lint