Skip to content

[feat] new --exclude flag for flutter/dart analyzeΒ #54826

@opxdelwin

Description

@opxdelwin

Use case

Rather than excluding a certain file from analysis for the entire project, We can enable the devs to exclude certain file from analysis only for a single instance of flutter analyze.

Ran into this trouble where I wanted to exclude one file from analyze when done via github actions, as certain firebase_config files aren't in the repo, but kept locally.

Proposal

Create a new flag --exclude for flutter/dart analyze to exclude this file for this specific flutter analyze run

system details
  • Dart version and tooling diagnostic info (dart info)
  • Dart 3.2.6 (stable)
  •  | Memory | CPU | Elapsed time | Command line |
     | -----: | --: | -----------: | ------------ |
     | 580 MB |  -- |              | dart.exe     |
     |  16 MB |  -- |              | dart.exe     |
     |  77 MB |  -- |              | dart.exe     |
     | 105 MB |  -- |              | dart.exe     |
     | 150 MB |  -- |              | dart.exe     |
     | 468 MB |  -- |              | dart.exe     |
     |  83 MB |  -- |              | dart.exe     |
    
    
  • Platform: Windows/Linux
  • Whether you are using Chrome, Safari, Firefox, Edge (if applicable): NA/general

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3A lower priority bug or feature requestarea-dart-cliUse area-dart-cli for issues related to the 'dart' command like tool.area-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.dart-cli-analyzeIssues related to the 'dart analyze' tooldevexp-commandIssues with the command-line dartanalyzer toolneeds-infoWe need additional information from the issue author (auto-closed after 14 days if no response)type-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions