Skip to content

Tracking literal_only_boolean_expressions Fixes #61903

@RohitSaily

Description

@RohitSaily

This issue is a thread for discussing and tracking planned fixes for literal_only_boolean_expressions. The goal of this is to identify and resolve all relevant cases that require updating with a single patch.

I will continually edit this post to keep it updated with any key information related to the fix. I will also link the in-progress patch here once I have started it.

These fixes follow a prior minor fix.


Current cases to handle - provided by @bwilkerson:

  • adjacent strings when some of the strings aren't constants (false positive)
  • list, map, and set literals whose elements are not all constants (false positive)
  • dot shorthand expressions that reference constants (false negative)

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions