Skip to content
This repository has been archived by the owner on Nov 20, 2024. It is now read-only.

Fix false positives in prefer_collection_literals #2340

Closed
wants to merge 4 commits into from

Commits on Nov 7, 2020

  1. Fix false positives in prefer_collection_literals

    Towards #1649
    
    Allow using `LinkedHashSet` and `LinkedHashMap` for named arguments,
    assignment to a variable, and when used in a binary expression where a
    static type is pushed down to the arguments.
    
    Refactor `_shouldSkipLinkedHashLint`. Extract a method to determine the
    type that is enforced statically for the expression rather than
    duplicate the subsequent check for each type of parent node.
    natebosch committed Nov 7, 2020
    Configuration menu
    Copy the full SHA
    691ec93 View commit details
    Browse the repository at this point in the history
  2. Update version.dart

    natebosch committed Nov 7, 2020
    Configuration menu
    Copy the full SHA
    49cb6f1 View commit details
    Browse the repository at this point in the history
  3. Missing return

    natebosch committed Nov 7, 2020
    Configuration menu
    Copy the full SHA
    9222e13 View commit details
    Browse the repository at this point in the history
  4. Dartfmt

    natebosch committed Nov 7, 2020
    Configuration menu
    Copy the full SHA
    b9a7202 View commit details
    Browse the repository at this point in the history