turboladen / tailor

A RubyGem that allows for checking standard styling of Ruby files.
146 stars 18 forks source link

Incorrect detection of max_code_lines_in_method #112

Open tindron opened 12 years ago

tindron commented 12 years ago

A method including:

  next if (@profiles[uuid].to_s.start_with? "SM" || @profiles[uuid] ==
    :SystemLogger)

does not detect the end of the method and includes the line count of the next method.

When the line is changed to:

  next if (@profiles[uuid].to_s.start_with? "SM" || @profiles[uuid] == :SystemLogger)

the error goes away.