Reek 3 has been released!
Reek gem has come quite a long way. During the last months we refactored so much of the source code that it almost feels like a new and shiny gem.
Right after the release of
Reek 2 we started to work on
Reek 3 which we released a couple of days ago.
A stable API
The changes that I’m most exited about is that we agreed on a public API and implemented it as well. For this API to use you’ll basically just do something like this:
require 'reek' reporter = Reek::Report::TextReport.new examiner = Reek::Examiner.new("class Klazz; def m(a,b,c); end; end") reporter.add_examiner examiner reporter.show
which would give you this
5 warnings: Klazz has no descriptive comment (IrresponsibleModule) Klazz#m has the name 'm' (UncommunicativeMethodName) Klazz#m has unused parameter 'a' (UnusedParameters) Klazz#m has unused parameter 'b' (UnusedParameters) Klazz#m has unused parameter
Continue reading →