Stop class_eval/instance_eval being counted as a nested iterator
-
Kevin Rutherford
- Assigned user set to Kevin Rutherford
-
Kevin Rutherford
Can you simply extract the outer block's body into a new method?
-
Kevin Rutherford
Well there's a chunk of duplication in that code: every call to property (where is that defined, btw?) is embedded in a call to class_eval. So one option would be to define a method that rolls the two together, calling property within the class_eval block.
Surely so much class_eval is dodgy anyway? Must be an alternative to be found...
-
Kevin Rutherford
- State changed from new to resolved
This could be solved when Reek respects config comments in the code.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.