Sha256: 19821a5f13680378a61ed77e5beb064841c9d817e25007d682b0a325452792e0

Contents?: true

Size: 432 Bytes

Versions: 48

Compression:

Stored size: 432 Bytes

Contents

class HomeController < ApplicationController
  def index
     # badly formatted code that will be picked up by RuboCop

    # rubocop -A --config .rubocop.yml
    # will not resolve this issue, you need to manually fix it
    a = 1

   person1 = 'John'
   person2 = 'Jane'
   person3 = 'Jack'
   person4 = 'Jill'

   people = [person1, person2, person3, person4]

   puts people if people.length > 0
 end

 def some_action
 end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
rails_app_generator-0.3.6 after_templates/addons/rubocop/app/controllers/home_controller.rb
rails_app_generator-0.3.5 after_templates/addons/rubocop/app/controllers/home_controller.rb
rails_app_generator-0.3.4 after_templates/addons/rubocop/app/controllers/home_controller.rb
rails_app_generator-0.3.3 after_templates/addons/rubocop/app/controllers/home_controller.rb
rails_app_generator-0.3.2 after_templates/addons/rubocop/app/controllers/home_controller.rb
rails_app_generator-0.3.1 after_templates/addons/rubocop/app/controllers/home_controller.rb
rails_app_generator-0.3.0 after_templates/addons/rubocop/app/controllers/home_controller.rb
rails_app_generator-0.2.43 after_templates/addons/rubocop/app/controllers/home_controller.rb
rails_app_generator-0.2.42 after_templates/addons/rubocop/app/controllers/home_controller.rb
rails_app_generator-0.2.41 after_templates/addons/rubocop/app/controllers/home_controller.rb
rails_app_generator-0.2.40 after_templates/addons/rubocop/app/controllers/home_controller.rb
rails_app_generator-0.2.39 after_templates/addons/rubocop/app/controllers/home_controller.rb
rails_app_generator-0.2.38 after_templates/addons/rubocop/app/controllers/home_controller.rb
rails_app_generator-0.2.37 after_templates/addons/rubocop/app/controllers/home_controller.rb
rails_app_generator-0.2.36 after_templates/addons/rubocop/app/controllers/home_controller.rb
rails_app_generator-0.2.35 after_templates/addons/rubocop/app/controllers/home_controller.rb
rails_app_generator-0.2.34 after_templates/addons/rubocop/app/controllers/home_controller.rb
rails_app_generator-0.2.33 after_templates/addons/rubocop/app/controllers/home_controller.rb
rails_app_generator-0.2.32 after_templates/addons/rubocop/app/controllers/home_controller.rb
rails_app_generator-0.2.31 after_templates/addons/rubocop/app/controllers/home_controller.rb