Sha256: c77fd156221e5018a9ae971936d959da4e438c4f0bd527a28acaf3ee0c30cd3e

Contents?: true

Size: 676 Bytes

Versions: 10

Compression:

Stored size: 676 Bytes

Contents

class Perfume
  attr_reader :perfumed

  def ignoreRubyStyle(oneParameter)
    oneVariable = oneParameter
  end

  def allow_nesting_iterators_two_levels_deep
    loop do
      loop do
      end
    end
  end

  def method_with_too_many_statements
    do_something
    do_something
    do_something
    do_something
    do_something
    do_something
  end

  def allow_up_to_two_duplicate_method_calls
    respond_to do |format|
      if success
        format.html { redirect_to some_path }
        format.js { head :ok }
      else
        format.html { redirect_to :back, status: :bad_request }
        format.js { render status: :bad_request }
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rubycritic-1.2.1 test/samples/reek/not_smelly.rb
rubycritic-1.2.0 test/samples/reek/not_smelly.rb
rubycritic-1.1.1 test/samples/reek/not_smelly.rb
rubycritic-1.1.0 test/samples/reek/not_smelly.rb
rubycritic-1.0.2 test/samples/reek/not_smelly.rb
rubycritic-1.0.1 test/samples/reek/not_smelly.rb
rubycritic-1.0.0 test/samples/reek/not_smelly.rb
rubycritic-0.0.16 test/samples/reek/not_smelly.rb
rubycritic-0.0.15 test/samples/reek/not_smelly.rb
rubycritic-0.0.14 test/samples/reek/not_smelly.rb