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.

There was a problem

You must be a member of this account.

nicholas a. evans's latest activity

Friday, April 03 2009
33 Allow matching on number of smell instances was updated in reek
Thursday, April 02 2009
33 Allow matching on number of smell instances was updated in reek
  • 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...

  • 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
      [...
Wednesday, April 01 2009
33 Allow matching on number of smell instances was updated in reek
  • 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......

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