Root

analysis_option.yaml

What is this file about

The ruleset for the dart code analyzer. To configure the analyzer, have a look at the official documentation.

Place the analysis options file, analysis_options.yaml, at the root of the package, in the same directory as the pubspec file.

Here’s a sample analysis options file:

include: package:lints/recommended.yaml

analyzer:
  exclude: [build/**]
  language:
    strict-casts: true
    strict-raw-types: true

linter:
  rules:
    - cancel_subscriptions

Copyright © 2024