Skip to content

Feature Request: Ability to Specify File List in dart fix --applyΒ #56752

@harsenad

Description

@harsenad

Hi Dart team,

I am currently using dart fix --apply, which works well when applied to a single file or an entire directory. However, I noticed there is no way to specify a list of files for this command. This limitation makes it challenging to use dart fix --apply in a pre-commit hook, as we need to manually update the analysis_options file to exclude files that are not part of the commit.

It would be incredibly useful if dart fix --apply had an option to apply fixes to a specified list of files. Is there already a way to achieve this, or could this be considered as a feature request?

Version of dart I am currently using : Dart SDK version: 3.5.2

Thank you for your time and consideration.

Best regards,
Harshada Senad

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-dart-cliUse area-dart-cli for issues related to the 'dart' command like tool.dart-cli-fixtype-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