Closed oliverklee closed 8 years ago
Hello @oliverklee, thanks for your bug report. Rails encourages some special patterns that will cause Reek to report smells. Please see the section Working with Rails in the README for details on which detectors we recommend you to disable.
@mvz Oh, I totally missed that addition to that section in the README. Thanks for the pointer!
We have a controller that basically looks like this (simplified)
For this controller, Reek complains: InstanceVariableAssumption: Admin::UsersController assumes too much for instance variable '@user' [https://github.com/troessner/reek/blob/master/docs/Instance-Variable-Assumption.md]
I consider this a false positive. Reek should register the before_action that sets the user instance variable.