Skip to content

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

@doctor-g

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.

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