lint/flutter-strict-modes
The Dart analyzer runs in all three strict modes
| Severity | warning |
| Tiers | all |
| Stacks | flutter |
| Scope | each |
| Kind | expr |
| Source | library v0.0.0-20261011205826-ecb4e9b3ffd4 |
| Selected by | fleetlint-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") != nullCheck
For each item in:
params.requiredhas(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] == trueParameters
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.