Skip to content

Make strict-inference and strict-raw-types report as error instead of warning #59928

@flamychann

Description

@flamychann

I enabled strict type check as per the Flutter documentation in my codebase. However, I found out that not all of them reports as error.

analyzer:
  language:
    strict-casts: true
    strict-inference: true
    strict-raw-types: true

strict-casts will be reported as error, which is wanted behaviour.

However, strict-inference and strict-raw-types will only report as warning in flutter analyze.

Is there any way to make strict-inference and strict-raw-types report as error instead of warning ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3A lower priority bug or feature requestlegacy-area-analyzerUse area-devexp instead.type-questionA question about expected behavior or functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions