Sha256: c3adee9179bcf50904ab3388afb9af776b0e9b14635e39c3e45f1e0ee91299ff

Contents?: true

Size: 351 Bytes

Versions: 8

Compression:

Stored size: 351 Bytes

Contents

# :reek:Duplication: { 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:Duplication: { 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

8 entries across 8 versions & 1 rubygems

Version Path
reek-1.3.1 spec/samples/inline_config/dirty.rb
reek-1.3 spec/samples/inline_config/dirty.rb
reek-1.2.13 spec/samples/inline_config/dirty.rb
reek-1.2.12 spec/samples/inline_config/dirty.rb
reek-1.2.11 spec/samples/inline_config/dirty.rb
reek-1.2.10 spec/samples/inline_config/dirty.rb
reek-1.2.9 spec/samples/inline_config/dirty.rb
reek-1.2.8 spec/samples/inline_config/dirty.rb