Sitelet https://github.com/flutter/flutter/issues/166909
Skip to content

Add "/coverage/" directory to the default .gitignore template #166909

Description

@doctor-g

Use case

Running flutter test --coverage generates the file coverage/lcov.info. As a generated file, it should not be added to version control, but the default .gitignore template does not prevent this.

Proposal

I propose that /coverage/ be added to the default .gitignore template that is generated by flutter create in order to circumvent this problem.

If a team wanted to record these files in version control, they would have to remove that entry. That strikes me as a reasonable cost given that the alternative is to have a high-churn generated file not being ignored by default.

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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