Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Activity (RSS)

Thursday, April 09 2009
Recognise attrasgn for feature envy h... was committed by Kevin Rutherford at 6:57 PM
Wednesday, April 08 2009
40 Large Class should not count added methods from validations / associations in... was updated
  • Kevin Rutherford
    Kevin Rutherford commented at 7:55 AM

    There's no way to whitelist individual methods so they don't contribute to the class size. There's also no way to increase the size threshold on a per-class bas...

Tuesday, April 07 2009
40 Large Class should not count added methods from validations / associations in... was created
  • David Balatero
    David Balatero created the ticket at 9:51 PM

    Given an ActiveRecord model with a number of validations and associations added, and no extra methods, the method count can balloon to larger than the max count...

33 Allow matching on number of smell instances was updated
39 *.reek should only affect file-based sources was updated
  • Kevin Rutherford
    • State changed from new to open
    by Kevin Rutherford at 4:32 PM
  • Kevin Rutherford
    Kevin Rutherford created the ticket at 4:18 PM

    If a Source is created from an IO stream or a String or an object, it should not attempt to look for *.reek config files. Currently the code looks in '.', which...

35 Need config file example for long method was updated
  • Kevin Rutherford
    • State changed from new to resolved
    by Kevin Rutherford at 3:57 PM

    Thanks for spotting this!

Tidied up the spec folder http://gith... was committed by Kevin Rutherford at 3:38 PM
Post release process tweaks http://gi... was committed by Kevin Rutherford at 3:26 PM
34 Stop class_eval/instance_eval being counted as a nested iterator was updated
  • Kevin Rutherford
    Kevin Rutherford commented at 1:28 PM

    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 ...

Monday, April 06 2009
36 Unexpected behavior of Reek::Source::from_pathlist(paths) was updated
  • Gabriel Miretti
    • Assigned user cleared.
    by Gabriel Miretti at 9:20 PM

    Wow! That was fast!

    Thanks.

  • Kevin Rutherford
    Kevin Rutherford commented at 8:41 PM

    Resolved in release 1.0.1, available from github.com/kevinrutherford/reek

  • Kevin Rutherford
    • State changed from open to resolved
    by Kevin Rutherford at 8:39 PM

    (from [f2caf4a0df265eba818f3c071ea96df597f4478e]) SourceList now has a ReportList [#36 state:resolved] http://github.com/kevinrutherfor...

  • Kevin Rutherford
    Kevin Rutherford commented at 8:18 PM

    The documentation is correct; this is a defect in SourceList. Its #report method should return an object that behaves like a Report.

  • Kevin Rutherford
    • Assigned user set to Kevin Rutherford
    • State changed from new to open
    by Kevin Rutherford at 8:30 AM
Release 1.0.1 http://github.com/kevin... was committed by Kevin Rutherford at 8:39 PM
SourceList now has a ReportList [#36 ... was committed by Kevin Rutherford at 8:39 PM
Sunday, April 05 2009
36 Unexpected behavior of Reek::Source::from_pathlist(paths) was created
  • Gabriel Miretti
    Gabriel Miretti created the ticket at 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 unt...

Further release process tweaks http:/... was committed by Kevin Rutherford at 1:28 PM
Release process tweaks http://github.... was committed by Kevin Rutherford at 1:28 PM
Release 1.0.0 http://github.com/kevin... was committed by Kevin Rutherford at 1:05 PM
Getting ready for release http://gith... was committed by Kevin Rutherford at 1:05 PM
Builds now auto-check the manifest ht... was committed by Kevin Rutherford at 12:22 PM
Reorganized rake tasks http://github.... was committed by Kevin Rutherford at 12:22 PM
34 Stop class_eval/instance_eval being counted as a nested iterator was updated
  • Kevin Rutherford
    Kevin Rutherford commented at 8:13 AM

    Can you simply extract the outer block's body into a new method?

  • Kevin Rutherford
    • Assigned user set to Kevin Rutherford
    by Kevin Rutherford at 7:50 AM
35 Need config file example for long method was updated
Friday, April 03 2009
33 Allow matching on number of smell instances was updated
  • nicholas a. evans
    nicholas a. evans commented at 12:48 PM

    Works for me. :) Thanks!

  • Kevin Rutherford
    Kevin Rutherford commented at 7:53 AM

    There is already another way to do what you want:

    
    dir = Dir['lib/**/*.rb'].to_source
    dir.report.should have_at_most(85).smells
    

    Not quite so sugary, perhap...

Expunged Hoe completely http://github... was committed by Kevin Rutherford at 10:16 AM
Simplified deployment tasks further h... was committed by Kevin Rutherford at 10:16 AM
Detached rake from hoe http://github.... was committed by Kevin Rutherford at 10:16 AM
Thursday, April 02 2009
33 Allow matching on number of smell instances was updated
  • nicholas a. evans
    nicholas a. evans commented at 2:37 PM

    I considered that, but Dir['nice/*/type/.glob'].to_s is quite atrocious. A good specdoc is important to me. ;-)

    so, if you made the 'reek' and 'reek_of' matcher...

  • nicholas a. evans
    nicholas a. evans commented at 2:30 PM

    please ignore the several typos in there (mismatched 'do...end', klass/klass_or_location). That's the downside of not having a 'preview' button. ;-)

    I can see w...

  • Kevin Rutherford
    Kevin Rutherford commented at 2:27 PM

    Cool -- I'm on it this weekend. One smell tweak, while we're sketching code:

    
    # specific classes or directories that we've cleaned up completely
    [
      NewClas...
  • nicholas a. evans
    nicholas a. evans commented at 2:23 PM

    Absolutely. I like that a lot. I'm envisioning something like the following:

    
    # specific smells we've cleaned up *everywhere*
    describe "our codebase" do
      [...
  • Kevin Rutherford
    Kevin Rutherford commented at 2:04 PM

    I'm quite reluctant to add numerical theshholds for smells. But here's an alternative thought:

    
    require 'my_class'
    
    describe MyClass do
      it 'reports no co...
Wednesday, April 01 2009
33 Allow matching on number of smell instances was updated
  • Kevin Rutherford
    Kevin Rutherford commented at 2:07 PM

    The $stderr warnings are from the underlying Ruby parser. (So they're smells too :).

    I'd say that UncommunicativeName and Duplication are the easiest to remove ...

  • nicholas a. evans
    nicholas a. evans commented at 2:01 PM

    And yes, like you said... I'll probably start with smaller directories down the tree, rather than all of app and lib (as in my example).

  • nicholas a. evans
    nicholas a. evans commented at 1:59 PM

    That's also a good ratchet-like approach. Unfortunately, our codebase seems to collect all of the smells. ;-) I think I'll use that approach for some of them......

  • Kevin Rutherford
    Kevin Rutherford commented at 1:26 PM

    How about starting with

    
    Dir[...].should_not reek_of(:UncommunicativeName)
    

    for some smallish Dir down the tree?

  • nicholas a. evans
    nicholas a. evans commented at 1:19 PM

    agree with the second version:

    
    some_source.should_not reek_much(:maximum_smells => 4400)
    # or an alternate syntax:
    some_source.should_not reek.more_than(44...
Tuesday, March 31 2009
Release 0.3.1.6 http://github.com/kev... was committed by Kevin Rutherford at 9:03 PM
Release 0.3.1.6 http://github.com/kev... was committed by Kevin Rutherford at 9:01 PM
Release 0.3.1.5 http://github.com/kev... was committed by Kevin Rutherford at 8:16 PM
Added defaults.reek to the gem http:/... was committed by Kevin Rutherford at 8:14 PM
Added reek.gemspec http://github.com/... was committed by Kevin Rutherford at 7:51 PM
32 provide rspec matcher for file lists was updated
  • Kevin Rutherford
    • State changed from new to resolved
    by Kevin Rutherford at 7:31 PM

    Resolved in v0.3.1.4

Ensured the specs run independently h... was committed by Kevin Rutherford at 4:15 PM
Sunday, March 29 2009
Converted the sample gem specs to use... was committed by Kevin Rutherford at 7:56 PM