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.
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.Writeetc. 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.