public
Description: Code smell detector for Ruby
Home | Edit | New

Working with Rails

With current versions of Reek it’s best to examine only your app/models folder, because Reek raises false positives against views and controllers.

For example, params is a kind of DTO (data transfer object) close to the system boundary, and so its characteristics should be different than regular code. But Reek doesn’t know that (yet); Reek thinks that all those params[:something] calls are a problem, and reports them as smells.

I plan to improve Reek in the near future so that it plays better with Rails. For now though, your best bet is to restrict it to looking at app/models (and maybe app/helpers and lib).

Last edited by kevinrutherford, Sat Sep 12 13:18:38 -0700 2009
Home | Edit | New
Versions: