Sha256: 0b27e0a2b19f34160b3a8f4b07651a64d89aaae1c5f49d95812f046b66fa6691

Contents?: true

Size: 367 Bytes

Versions: 22

Compression:

Stored size: 367 Bytes

Contents

# :reek:DuplicateMethodCall: { allow_calls: [ puts ] }
# smells of :reek:NestedIterators but ignores them
class Dirty
  def a
    puts @s.title
    @s = fred.map {|x| x.each {|key| key += 3}}
    puts @s.title
  end

  # :reek:DuplicateMethodCall: { max_calls: 2 }
  def b
    puts @s.title
    @s = fred.map {|x| x.each {|key| key += 3}}
    puts @s.title
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
reek-1.3.3 spec/samples/inline_config/dirty.rb
reek-1.3.2 spec/samples/inline_config/dirty.rb