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-2.0.4 spec/samples/inline_config/dirty.rb
reek-2.0.3 spec/samples/inline_config/dirty.rb
reek-2.0.2 spec/samples/inline_config/dirty.rb
reek-2.0.1 spec/samples/inline_config/dirty.rb
reek-2.0.0 spec/samples/inline_config/dirty.rb
reek-1.6.6 spec/samples/inline_config/dirty.rb
reek-1.6.5 spec/samples/inline_config/dirty.rb
reek-1.6.4 spec/samples/inline_config/dirty.rb
reek-1.6.3 spec/samples/inline_config/dirty.rb
reek-1.6.2 spec/samples/inline_config/dirty.rb
reek-1.6.1 spec/samples/inline_config/dirty.rb
reek-1.6.0 spec/samples/inline_config/dirty.rb
reek-1.5.1 spec/samples/inline_config/dirty.rb
reek-1.5.0 spec/samples/inline_config/dirty.rb
reek-1.4.0 spec/samples/inline_config/dirty.rb
reek-1.3.8 spec/samples/inline_config/dirty.rb
reek-1.3.7 spec/samples/inline_config/dirty.rb
reek-1.3.6 spec/samples/inline_config/dirty.rb
reek-1.3.5 spec/samples/inline_config/dirty.rb
reek-1.3.4 spec/samples/inline_config/dirty.rb