Skip to content

Proposal:flutter create templates should exclude the build (and other appropriate) folders from analysis #187728

Description

@DanTup

Use case

This originally came up at Dart-Code/Dart-Code#6073. Using Flutterfire with Swift Package Manager results in Dart files in the build/ folder which the analysis server analyzes, producing (potentially large numbers of) spurious analysis errors.

It doesn't make sense to analyze things in the build/ folder, but since this is a Flutter detail, it probably also does not make sense to code the exclusion into the analysis server.

Proposal

Include exclusions for any folders that Flutter creates that aren't expected to contain user-owned Dart files as exclusions in analysis_options.yaml for the flutter create templates:

analyzer:
  exclude:
    - build/

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listc: proposalA detailed proposal for a change to Flutterteam-toolOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-toolTriaged by Flutter Tool team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions