Skip to content

Flag source generator I/O #5669

Description

@chsienki

Describe the problem you are trying to solve

We know that potentially bad-things™ happen when generators perform I/O, so we should flag any generators that do so.

Describe suggestions on how to achieve the rule

We'll look for obvious uses of File.Write etc. from within any class marked with [Generator].

Additional context

We won't be able to get all instances, but it should be enough to dissuade authors from doing so, along with a link to more info to explain why they shouldn't.

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions