fleetlint Policy for a fleet of repositories
v0.3
Getting started

lint/flutter-strict-modes

The Dart analyzer runs in all three strict modes

Severitywarning
Tiersall
Stacksflutter
Scopeeach
Kindexpr
Sourcelibrary v0.0.0-20261011205826-ecb4e9b3ffd4
Selected byfleetlint-recommended@0.1.0

Requirement

analyzer.language in analysis_options.yaml sets every mode in params.required to true.

Why

Each mode closes a different hole through which dynamic enters the program unnoticed.

Applies when

file("analysis_options.yaml") && yaml("analysis_options.yaml") != null

Check

For each item in:

params.required
has(yaml("analysis_options.yaml").analyzer) && has(yaml("analysis_options.yaml").analyzer.language) && item in yaml("analysis_options.yaml").analyzer.language && yaml("analysis_options.yaml").analyzer.language[item] == true

Parameters

  • required: [strict-casts strict-inference strict-raw-types]

Fix

Set the missing modes to true under analyzer.language.

Agent instruction: Set each reported mode to true under analyzer.language and list the analyzer errors that appear instead of adding ignores.

fleetlint fix can apply this rule’s fix automatically (1 action(s)).

See: https://fleetlint.org/stacks/#flutter--dart


Generated by fleetlint docs from catalog v0.0.0-20261011205826-ecb4e9b3ffd4.