#36 ✓resolved
Gabriel Miretti

Unexpected behavior of Reek::Source::from_pathlist(paths)

Reported by Gabriel Miretti | April 5th, 2009 @ 10:32 PM

According to rdoc: Reek::Source::from_pathlist(paths) Factory method: creates a Source object from an array of file paths. No source code is actually parsed until the report is accessed.

But actually Reek::Source::from_pathlist(paths) creates a SourceList object, so when the report is accessed, an String object is obtained, instead of a Report object, as expected for a Source object.

Maybe only the documentation is wrong and this is the expected behaviour.

In my case, I want to check a set of files and obtain one report that provides me a size method.

Comments and changes to this ticket

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.

Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Defects and feature requests for Reek, the Ruby code smell detector

People watching this ticket

Tags

Referenced by

Pages