roslyn-linq-rewrite icon indicating copy to clipboard operation
roslyn-linq-rewrite copied to clipboard

Alternate Opt-in attributes

Open Andrew-Hanlon opened this issue 7 years ago • 3 comments

This is a fantastic tool, but I think one of the main barriers to wider adoption is the (perhaps unwarranted) fear of applying code re-writing across an entire codebase.

I think there would be a much larger/faster adoption of the tool if there was an additional set of attribute that allowed per-class or member opt-in vs. opt-out.

This could come in the form of an assembly level opt-out attribute (like the NoLinqRewriteAttribute at the assembly level), and an opt-in attribute at the class/member level (like a 'ApplyLinqRewriteAttribute').

I would be happy to create an initial PR if this was something that sounds acceptable.

Andrew-Hanlon avatar Sep 29 '16 13:09 Andrew-Hanlon