Rubocop: Rubocop -a `undefined_method range between` regression in 0.53.0

Created on 5 Mar 2018  ·  5Comments  ·  Source: rubocop-hq/rubocop

We generate new rails apps routinely as we spin up new projects. Part of that generation process involves running rubocop -a to get various files pulled in from gems to match our style guide.

When I generated an app today, it pulled in rubocop 0.53.0 and the autocorrect failed.


Expected behavior

running rubocop -a should fix the things it knows how to fix

C.W.........CC..C..CW....CCCC.........C....C.....C.....C.....................C.C......C.C...WCCCCC.CCCWCCCC..C

Offenses:

.simplecov:31:35: C: [Corrected] Style/TrailingCommaInLiteral: Avoid comma after the last item of an array. (https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas)
    Cadre::SimpleCov::VimFormatter,
                                  ^
Gemfile:1:1: W: Lint/MissingCopEnableDirective: Re-enable Metrics/LineLength cop with # rubocop:enable after disabling it.
# rubocop:disable Metrics/LineLength
^
app/models/concerns/address_fields.rb:5:5: C: Rails/HasManyOrHasOneDependent: Specify a :dependent option. (https://github.com/bbatsov/rails-style-guide#has_many-has_one-dependent-option)
    has_one :address, as: :addressable, inverse_of: :addressable
    ^^^^^^^
app/models/concerns/address_fields.rb:17:12: C: Rails/OutputSafety: Tagging a string as html safe may be a security risk.
    output.html_safe
           ^^^^^^^^^
app/models/user.rb:11:81: C: Metrics/LineLength: Line is too long. [86/80] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
         :recoverable, :rememberable, :trackable, :validatable, :token_authenticatable
                                                                                ^^^^^^
app/models/user.rb:13:3: C: Rails/HasManyOrHasOneDependent: Specify a :dependent option. (https://github.com/bbatsov/rails-style-guide#has_many-has_one-dependent-option)
  has_many :authentication_tokens
  ^^^^^^^^
app/models/user.rb:37:81: C: Metrics/LineLength: Line is too long. [81/80] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
  PASSWORD_FORMAT_MESSAGE = 'Password must be between 8 and 72 characters'.freeze
                                                                                ^
app/dashboards/user_dashboard.rb:31:81: C: Metrics/LineLength: Line is too long. [88/80] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
                      current_sign_in_ip: Field::String.with_options(searchable: false),
                                                                                ^^^^^^^^
app/dashboards/user_dashboard.rb:32:81: C: Metrics/LineLength: Line is too long. [85/80] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
                      last_sign_in_ip: Field::String.with_options(searchable: false),
                                                                                ^^^^^
app/dashboards/user_dashboard.rb:40:50: C: [Corrected] Style/TrailingCommaInLiteral: Avoid comma after the last item of a hash. (https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas)
                      deleted_at: Field::DateTime,
                                                 ^
app/dashboards/user_dashboard.rb:54:39: C: [Corrected] Style/TrailingCommaInLiteral: Avoid comma after the last item of an array. (https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas)
                           :first_name,
                                      ^
app/dashboards/user_dashboard.rb:87:38: C: [Corrected] Style/TrailingCommaInLiteral: Avoid comma after the last item of an array. (https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas)
                          :deleted_at,
                                     ^
app/dashboards/user_dashboard.rb:120:33: C: [Corrected] Style/TrailingCommaInLiteral: Avoid comma after the last item of an array. (https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas)
                     :deleted_at,
                                ^
app/controllers/images_controller.rb:12:81: C: Metrics/LineLength: Line is too long. [87/80] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
        # format.html { redirect_to @image, notice: 'Image was successfully created.' }
                                                                                ^^^^^^^
app/controllers/images_controller.rb:16:81: C: Metrics/LineLength: Line is too long. [81/80] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
        format.json { render json: @image.errors, status: :unprocessable_entity }
                                                                                ^
app/controllers/application_controller.rb:1:1: W: Lint/MissingCopEnableDirective: Re-enable Metrics/MethodLength cop with # rubocop:enable after disabling it.
# rubocop:disable Metrics/MethodLength, Metrics/CyclomaticComplexity, Metrics/LineLength
^
app/controllers/application_controller.rb:35:21: C: [Corrected] Style/TrailingCommaInLiteral: Avoid comma after the last item of an array. (https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas)
        :remember_me,
                    ^
app/controllers/application_controller.rb:55:26: C: [Corrected] Style/TrailingCommaInLiteral: Avoid comma after the last item of an array. (https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas)
        :current_password,
                         ^
app/controllers/users_controller.rb:6:51: C: [Corrected] Style/TrailingCommaInLiteral: Avoid comma after the last item of an array. (https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas)
                                  :update_password,
                                                  ^
app/controllers/api/v1/users_controller.rb:31:42: C: [Corrected] Style/TrailingCommaInLiteral: Avoid comma after the last item of a hash. (https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas)
              authentication_token: token,
                                         ^
app/controllers/api/base_api_controller.rb:20:34: C: [Corrected] Style/TrailingCommaInLiteral: Avoid comma after the last item of a hash. (https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas)
            detail: error_message,
                                 ^
app/controllers/concerns/analytics_track.rb:22:34: C: [Corrected] Style/TrailingCommaInLiteral: Avoid comma after the last item of a hash. (https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas)
        rails_env: Rails.env.to_s,
                                 ^
app/controllers/concerns/analytics_track.rb:23:33: C: [Corrected] Style/TrailingCommaInLiteral: Avoid comma after the last item of a hash. (https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas)
      }.merge(sanitized_options),
                                ^
app/controllers/concerns/analytics_track.rb:39:36: C: [Corrected] Style/TrailingCommaInLiteral: Avoid comma after the last item of a hash. (https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas)
        platform: browser&.platform,
                                   ^
app/controllers/concerns/analytics_track.rb:46:28: C: [Corrected] Style/TrailingCommaInLiteral: Avoid comma after the last item of a hash. (https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas)
        platform: 'unknown',
                           ^
config/initializers/errors.rb:18:17: C: [Corrected] Style/TrailingCommaInLiteral: Avoid comma after the last item of an array. (https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas)
  Timeout::Error,
                ^
config/initializers/errors.rb:26:17: C: [Corrected] Style/TrailingCommaInLiteral: Avoid comma after the last item of an array. (https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas)
  Timeout::Error,
                ^
config/initializers/errors.rb:31:23: C: [Corrected] Style/TrailingCommaInLiteral: Avoid comma after the last item of an array. (https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas)
  Net::SMTPSyntaxError,
                      ^
config/initializers/shrine.rb:7:1: C: [Corrected] Layout/EmptyLinesAroundArguments: Empty line detected around arguments.
config/initializers/shrine.rb:9:76: C: [Corrected] Style/TrailingCommaInLiteral: Avoid comma after the last item of a hash. (https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas)
  store: Shrine::Storage::FileSystem.new('public', prefix: 'uploads/store'),
                                                                           ^
config/initializers/simple_form_foundation.rb:4:1: C: Metrics/BlockLength: Block has too many lines. [62/25]
SimpleForm.setup do |config| ...
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
config/initializers/simple_form_foundation.rb:9:81: C: Metrics/LineLength: Line is too long. [93/80] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
  # doesn't provide styles for hints. You will need to provide your own CSS styles for hints.
                                                                                ^^^^^^^^^^^^^
config/initializers/simple_form_foundation.rb:12:81: C: Metrics/LineLength: Line is too long. [105/80] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
  config.wrappers :vertical_form, class: :input, hint_class: :field_with_hint, error_class: :error do |b|
                                                                                ^^^^^^^^^^^^^^^^^^^^^^^^^
config/initializers/simple_form_foundation.rb:26:81: C: Metrics/LineLength: Line is too long. [118/80] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
  config.wrappers :horizontal_form, tag: 'div', class: 'row', hint_class: :field_with_hint, error_class: :error do |b|
                                                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
config/initializers/simple_form_foundation.rb:46:81: C: Metrics/LineLength: Line is too long. [83/80] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
  config.wrappers :horizontal_radio_and_checkboxes, tag: 'div', class: 'row' do |b|
                                                                                ^^^
config/initializers/simple_form_foundation.rb:50:81: C: Metrics/LineLength: Line is too long. [93/80] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
    b.wrapper :container_wrapper, tag: 'div', class: 'small-offset-3 small-9 columns' do |ba|
                                                                                ^^^^^^^^^^^^^
config/initializers/simple_form_foundation.rb:68:81: C: Metrics/LineLength: Line is too long. [125/80] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
  config.wrappers :inline_form, tag: 'div', class: 'column small-4', hint_class: :field_with_hint, error_class: :error do |b|
                                                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
config/initializers/simple_form_foundation.rb:85:81: C: Metrics/LineLength: Line is too long. [83/80] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
  # - wrapper_html: {class: 'row'}, custom_wrapper_html: {class: 'column small-12'}
                                                                                ^^^
features/support/pickle.rb:8:7: C: Style/AsciiComments: Use only ascii symbols in comments. (https://github.com/bbatsov/ruby-style-guide#english-comments)
#    # or your chosen adaptor
      ^
spec/models/user_spec.rb:5:13: C: RSpec/ContextWording: Start context description with 'when', 'with', or 'without'. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ContextWording)
    context 'roles' do
            ^^^^^^^
spec/models/user_spec.rb:18:11: C: RSpec/ContextWording: Start context description with 'when', 'with', or 'without'. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ContextWording)
  context '#tester?' do
          ^^^^^^^^^^
spec/models/user_spec.rb:32:11: C: RSpec/ContextWording: Start context description with 'when', 'with', or 'without'. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ContextWording)
  context 'new user creation' do
          ^^^^^^^^^^^^^^^^^^^
spec/models/user_spec.rb:40:23: C: RSpec/MessageSpies: Prefer receive for setting message expectations. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/MessageSpies)
      expect(User).to have_received(:exists?).exactly(2).times
                      ^^^^^^^^^^^^^
spec/requests/api/v1/users_controller_spec.rb:8:24: C: [Corrected] Style/TrailingCommaInLiteral: Avoid comma after the last item of a hash. (https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas)
      email: user.email,
                       ^
spec/requests/api/v1/users_controller_spec.rb:30:32: C: [Corrected] Style/TrailingCommaInLiteral: Avoid comma after the last item of a hash. (https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas)
      email: '[email protected]',
                               ^
spec/requests/api/v1/users_controller_spec.rb:33:13: C: RSpec/ContextWording: Start context description with 'when', 'with', or 'without'. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ContextWording)
    context 'successful' do
            ^^^^^^^^^^^^
spec/requests/api/v1/users_controller_spec.rb:40:48: C: [Corrected] Style/TrailingCommaInLiteral: Avoid comma after the last item of a hash. (https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas)
              password_confirmation: 'password',
                                               ^
spec/requests/api/v1/users_controller_spec.rb:41:27: C: [Corrected] Style/TrailingCommaInLiteral: Avoid comma after the last item of a hash. (https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas)
            }.merge(email),
                          ^
spec/requests/api/v1/users_controller_spec.rb:42:12: C: [Corrected] Style/TrailingCommaInLiteral: Avoid comma after the last item of a hash. (https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas)
          },
           ^
spec/requests/api/v1/users_controller_spec.rb:51:13: C: RSpec/ContextWording: Start context description with 'when', 'with', or 'without'. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ContextWording)
    context 'unsuccessful' do
            ^^^^^^^^^^^^^^
spec/requests/api/v1/users_controller_spec.rb:58:49: C: [Corrected] Style/TrailingCommaInLiteral: Avoid comma after the last item of a hash. (https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas)
              password_confirmation: 'password2',
                                                ^
spec/requests/api/v1/users_controller_spec.rb:59:14: C: [Corrected] Style/TrailingCommaInLiteral: Avoid comma after the last item of a hash. (https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas)
            },
             ^
spec/requests/api/v1/users_controller_spec.rb:60:12: C: [Corrected] Style/TrailingCommaInLiteral: Avoid comma after the last item of a hash. (https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas)
          },
           ^
spec/requests/api/v1/users_controller_spec.rb:75:13: C: RSpec/ContextWording: Start context description with 'when', 'with', or 'without'. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ContextWording)
    context 'successful' do
            ^^^^^^^^^^^^
spec/requests/api/v1/users_controller_spec.rb:82:39: C: [Corrected] Style/TrailingCommaInLiteral: Avoid comma after the last item of a hash. (https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas)
              email: '[email protected]',
                                      ^
spec/requests/api/v1/users_controller_spec.rb:83:14: C: [Corrected] Style/TrailingCommaInLiteral: Avoid comma after the last item of a hash. (https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas)
            },
             ^
spec/requests/api/v1/users_controller_spec.rb:84:12: C: [Corrected] Style/TrailingCommaInLiteral: Avoid comma after the last item of a hash. (https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas)
          },
           ^
spec/requests/api/v1/users_controller_spec.rb:93:13: C: RSpec/ContextWording: Start context description with 'when', 'with', or 'without'. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ContextWording)
    context 'unsuccessful' do
            ^^^^^^^^^^^^^^
spec/requests/api/v1/users_controller_spec.rb:100:24: C: [Corrected] Style/TrailingCommaInLiteral: Avoid comma after the last item of a hash. (https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas)
              email: '',
                       ^
spec/requests/api/v1/users_controller_spec.rb:101:14: C: [Corrected] Style/TrailingCommaInLiteral: Avoid comma after the last item of a hash. (https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas)
            },
             ^
spec/requests/api/v1/users_controller_spec.rb:102:12: C: [Corrected] Style/TrailingCommaInLiteral: Avoid comma after the last item of a hash. (https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas)
          },
           ^
spec/support/action_mailer.rb:2:3: C: [Corrected] RSpec/HookArgument: Omit the default :each argument for RSpec hooks. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/HookArgument)
  config.before(:each) do
  ^^^^^^^^^^^^^^^^^^^^
spec/support/http_helpers.rb:50:46: C: [Corrected] Style/TrailingCommaInLiteral: Avoid comma after the last item of a hash. (https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas)
      'X-User-Token' => @authentication_token,
                                             ^
spec/support/matchers/custom_cancan.rb:1:1: W: Lint/MissingCopEnableDirective: Re-enable Metrics/BlockLength cop with # rubocop:enable after disabling it.
# rubocop:disable Metrics/BlockLength
^
spec/support/matchers/custom_cancan.rb:1:1: W: [Corrected] Lint/UnneededDisable: Unnecessary disabling of Metrics/BlockLength.
# rubocop:disable Metrics/BlockLength
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
spec/support/shared_examples/admin_dashboard_spec.rb:6:13: C: RSpec/ContextWording: Start context description with 'when', 'with', or 'without'. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ContextWording)
    context 'authenticated' do
            ^^^^^^^^^^^^^^^
spec/support/shared_examples/admin_dashboard_spec.rb:7:15: C: RSpec/ContextWording: Start context description with 'when', 'with', or 'without'. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ContextWording)
      context 'admin' do
              ^^^^^^^
spec/support/shared_examples/admin_dashboard_spec.rb:15:15: C: RSpec/ContextWording: Start context description with 'when', 'with', or 'without'. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ContextWording)
      context 'user' do
              ^^^^^^
spec/support/shared_examples/admin_dashboard_spec.rb:27:13: C: RSpec/ContextWording: Start context description with 'when', 'with', or 'without'. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ContextWording)
    context 'NOT authenticated' do
            ^^^^^^^^^^^^^^^^^^^
spec/support/request_spec_helper.rb:5:5: C: [Corrected] RSpec/HookArgument: Omit the default :each argument for RSpec hooks. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/HookArgument)
    base.before(:each) { Warden.test_mode! }
    ^^^^^^^^^^^^^^^^^^
spec/support/request_spec_helper.rb:6:5: C: [Corrected] RSpec/HookArgument: Omit the default :each argument for RSpec hooks. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/HookArgument)
    base.after(:each) { Warden.test_reset! }
    ^^^^^^^^^^^^^^^^^
spec/factories/addresses.rb:4:10: C: [Corrected] Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols. (https://github.com/bbatsov/ruby-style-guide#consistent-string-literals)
    city "MyString"
         ^^^^^^^^^^
spec/factories/addresses.rb:5:11: C: [Corrected] Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols. (https://github.com/bbatsov/ruby-style-guide#consistent-string-literals)
    line1 "MyString"
          ^^^^^^^^^^
spec/factories/addresses.rb:6:11: C: [Corrected] Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols. (https://github.com/bbatsov/ruby-style-guide#consistent-string-literals)
    line2 "MyString"
          ^^^^^^^^^^
spec/factories/addresses.rb:7:11: C: [Corrected] Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols. (https://github.com/bbatsov/ruby-style-guide#consistent-string-literals)
    state "MyString"
          ^^^^^^^^^^
spec/factories/addresses.rb:8:9: C: [Corrected] Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols. (https://github.com/bbatsov/ruby-style-guide#consistent-string-literals)
    zip "MyString"
        ^^^^^^^^^^
spec/factories/images.rb:4:16: C: [Corrected] Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols. (https://github.com/bbatsov/ruby-style-guide#consistent-string-literals)
    image_data "MyText"
               ^^^^^^^^
spec/factories/attachments.rb:4:21: C: [Corrected] Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols. (https://github.com/bbatsov/ruby-style-guide#consistent-string-literals)
    attachment_data "MyText"
                    ^^^^^^^^
spec/factories/authentication_tokens.rb:3:10: C: [Corrected] Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols. (https://github.com/bbatsov/ruby-style-guide#consistent-string-literals)
    body "MyString"
         ^^^^^^^^^^
spec/factories/authentication_tokens.rb:5:18: C: [Corrected] Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols. (https://github.com/bbatsov/ruby-style-guide#consistent-string-literals)
    last_used_at "2018-03-05 14:01:07"
                 ^^^^^^^^^^^^^^^^^^^^^
spec/factories/authentication_tokens.rb:6:16: C: [Corrected] Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols. (https://github.com/bbatsov/ruby-style-guide#consistent-string-literals)
    ip_address "MyString"
               ^^^^^^^^^^
spec/factories/authentication_tokens.rb:7:16: C: [Corrected] Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols. (https://github.com/bbatsov/ruby-style-guide#consistent-string-literals)
    user_agent "MyString"
               ^^^^^^^^^^
spec/controllers/admin/users_controller_spec.rb:8:11: C: RSpec/ContextWording: Start context description with 'when', 'with', or 'without'. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ContextWording)
  context 'impersonation' do
          ^^^^^^^^^^^^^^^
spec/controllers/application_controller_spec.rb:19:11: C: RSpec/ContextWording: Start context description with 'when', 'with', or 'without'. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ContextWording)
  context 'errors' do
          ^^^^^^^^
spec/controllers/application_controller_spec.rb:27:11: C: RSpec/ContextWording: Start context description with 'when', 'with', or 'without'. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ContextWording)
  context 'analytics' do
          ^^^^^^^^^^^
spec/controllers/application_controller_spec.rb:35:28: C: RSpec/MessageSpies: Prefer receive for setting message expectations. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/MessageSpies)
      expect(Analytics).to have_received(:track)
                           ^^^^^^^^^^^^^
spec/controllers/application_controller_spec.rb:41:28: C: RSpec/MessageSpies: Prefer receive for setting message expectations. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/MessageSpies)
      expect(Analytics).to have_received(:track)
                           ^^^^^^^^^^^^^
spec/controllers/application_controller_spec.rb:45:11: C: RSpec/ContextWording: Start context description with 'when', 'with', or 'without'. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ContextWording)
  context 'variants' do
          ^^^^^^^^^^
spec/rails_helper.rb:1:1: W: Lint/MissingCopEnableDirective: Re-enable Metrics/BlockLength cop with # rubocop:enable after disabling it.
# rubocop:disable Metrics/BlockLength, Metrics/LineLength, Rails/FilePath, Style/MixinGrouping
^
spec/rails_helper.rb:1:19: W: [Corrected] Lint/UnneededDisable: Unnecessary disabling of Metrics/BlockLength.
# rubocop:disable Metrics/BlockLength, Metrics/LineLength, Rails/FilePath, Style/MixinGrouping
                  ^^^^^^^^^^^^^^^^^^^
spec/rails_helper.rb:1:76: W: [Corrected] Lint/UnneededDisable: Unnecessary disabling of Style/MixinGrouping.
# rubocop:disable Metrics/BlockLength, Metrics/LineLength, Rails/FilePath, Style/MixinGrouping
                                                                           ^^^^^^^^^^^^^^^^^^^
spec/rails_helper.rb:53:3: C: [Corrected] RSpec/HookArgument: Omit the default :each argument for RSpec hooks. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/HookArgument)
  config.after(:each) do
  ^^^^^^^^^^^^^^^^^^^
spec/rails_helper.rb:57:3: C: [Corrected] RSpec/HookArgument: Omit the default :each argument for RSpec hooks. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/HookArgument)
  config.before(:each) do |spec|
  ^^^^^^^^^^^^^^^^^^^^
spec/rails_helper.rb:65:1: C: [Corrected] Layout/CommentIndentation: Incorrect indentation detected (column 0 instead of 2).
# config.before(:suite) do
^^^^^^^^^^^^^^^^^^^^^^^^^^
spec/rails_helper.rb:66:1: C: [Corrected] Layout/CommentIndentation: Incorrect indentation detected (column 0 instead of 2).
#   # Load seed data to bootstrap the app with things the real app will have at
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
spec/rails_helper.rb:67:1: C: [Corrected] Layout/CommentIndentation: Incorrect indentation detected (column 0 instead of 2).
#   # launch like States, roles, etc.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
spec/rails_helper.rb:68:1: C: [Corrected] Layout/CommentIndentation: Incorrect indentation detected (column 0 instead of 2).
#   require 'rake'
^^^^^^^^^^^^^^^^^^
spec/rails_helper.rb:69:1: C: [Corrected] Layout/CommentIndentation: Incorrect indentation detected (column 0 instead of 2).
#   Voyagetest104::Application.load_tasks
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
spec/rails_helper.rb:70:1: C: [Corrected] Layout/CommentIndentation: Incorrect indentation detected (column 0 instead of 2).
#   Rake::Task['db:seed'].invoke
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
spec/rails_helper.rb:71:1: C: [Corrected] Layout/CommentIndentation: Incorrect indentation detected (column 0 instead of 2).
# end
^^^^^
spec/rails_helper.rb:73:3: C: [Corrected] RSpec/HookArgument: Omit the default :each argument for RSpec hooks. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/HookArgument)
  config.after(:each) do
  ^^^^^^^^^^^^^^^^^^^
spec/rails_helper.rb:74:37: C: Rails/UnknownEnv: Unknown environment cucumber?.
    if Rails.env.test? || Rails.env.cucumber?
                                    ^^^^^^^^^
script/cucumber:3:81: C: Metrics/LineLength: Line is too long. [110/80] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
vendored_cucumber_bin = Dir["#{File.dirname(__FILE__)}/../vendor/{gems,plugins}/cucumber*/bin/cucumber"].first
                                                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
lib/tasks/bundler_audit.rake:2:11: C: [Corrected] Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols. (https://github.com/bbatsov/ruby-style-guide#consistent-string-literals)
  require "bundler/audit/task"
          ^^^^^^^^^^^^^^^^^^^^
lib/tasks/cucumber.rake:4:81: C: Metrics/LineLength: Line is too long. [84/80] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
# instead of editing this one. Cucumber will automatically load all features/**/*.rb
                                                                                ^^^^
lib/tasks/cucumber.rake:7:1: C: [Corrected] Layout/EmptyLines: Extra blank line detected. (https://github.com/bbatsov/ruby-style-guide#two-or-more-empty-lines)
lib/tasks/cucumber.rake:7:81: C: Metrics/LineLength: Line is too long. [89/80] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
unless ARGV.any? { |a| a =~ /^gems/ } # Don't load anything when running the gems:* tasks
                                                                                ^^^^^^^^^
lib/tasks/cucumber.rake:8:18: C: [Corrected] Layout/SpaceInsideBlockBraces: Space between { and | missing.
unless ARGV.any? {|a| a =~ /^gems/} # Don't load anything when running the gems:* tasks
                 ^^
lib/tasks/cucumber.rake:8:35: C: [Corrected] Layout/SpaceInsideBlockBraces: Space missing inside }.
unless ARGV.any? {|a| a =~ /^gems/} # Don't load anything when running the gems:* tasks
                                  ^
lib/tasks/cucumber.rake:9:31: C: Rails/FilePath: Please use Rails.root.join('path', 'to') instead.
  vendored_cucumber_bin = Dir["#{Rails.root}/vendor/{gems,plugins}/cucumber*/bin/cucumber"].first
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
lib/tasks/cucumber.rake:9:81: C: Metrics/LineLength: Line is too long. [97/80] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
  vendored_cucumber_bin = Dir["#{Rails.root}/vendor/{gems,plugins}/cucumber*/bin/cucumber"].first
                                                                                ^^^^^^^^^^^^^^^^^
lib/tasks/cucumber.rake:10:1: C: [Corrected] Layout/IndentationConsistency: Inconsistent indentation detected. (https://github.com/bbatsov/ruby-style-guide#spaces-indentation)
$LOAD_PATH.unshift(File.dirname(vendored_cucumber_bin) + '/../lib') unless vendored_cucumber_bin.nil?
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
lib/tasks/cucumber.rake:10:1: C: [Corrected] Layout/IndentationWidth: Use 2 (not 0) spaces for indentation. (https://github.com/bbatsov/ruby-style-guide#spaces-indentation)
vendored_cucumber_bin = Dir["#{Rails.root}/vendor/{gems,plugins}/cucumber*/bin/cucumber"].first

lib/tasks/cucumber.rake:10:81: C: Metrics/LineLength: Line is too long. [103/80] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
  $LOAD_PATH.unshift(File.dirname(vendored_cucumber_bin) + '/../lib') unless vendored_cucumber_bin.nil?
                                                                                ^^^^^^^^^^^^^^^^^^^^^^^
lib/tasks/cucumber.rake:12:1: C: [Corrected] Layout/IndentationConsistency: Inconsistent indentation detected. (https://github.com/bbatsov/ruby-style-guide#spaces-indentation)
begin ...
^^^^^
lib/tasks/cucumber.rake:14:1: C: [Corrected] Layout/TrailingWhitespace: Trailing whitespace detected. (https://github.com/bbatsov/ruby-style-guide#no-trailing-whitespace)
lib/tasks/cucumber.rake:15:5: C: Metrics/BlockLength: Block has too many lines. [30/25]
    namespace :cucumber do ...
    ^^^^^^^^^^^^^^^^^^^^^^
lib/tasks/cucumber.rake:16:81: C: Metrics/LineLength: Line is too long. [94/80] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
      Cucumber::Rake::Task.new({ ok: 'test:prepare' }, 'Run features that should pass') do |t|
                                                                                ^^^^^^^^^^^^^^
lib/tasks/cucumber.rake:17:30: C: [Corrected] Layout/SpaceInsideHashLiteralBraces: Space inside { missing. (https://github.com/bbatsov/ruby-style-guide#spaces-operators)
    Cucumber::Rake::Task.new({:ok => 'test:prepare'}, 'Run features that should pass') do |t|
                             ^
lib/tasks/cucumber.rake:17:31: C: [Corrected] Style/HashSyntax: Use the new Ruby 1.9 hash syntax. (https://github.com/bbatsov/ruby-style-guide#hash-literals)
    Cucumber::Rake::Task.new({:ok => 'test:prepare'}, 'Run features that should pass') do |t|
                              ^^^^^^
lib/tasks/cucumber.rake:17:52: C: [Corrected] Layout/SpaceInsideHashLiteralBraces: Space inside } missing. (https://github.com/bbatsov/ruby-style-guide#spaces-operators)
    Cucumber::Rake::Task.new({:ok => 'test:prepare'}, 'Run features that should pass') do |t|
                                                   ^
lib/tasks/cucumber.rake:21:1: C: [Corrected] Layout/TrailingWhitespace: Trailing whitespace detected. (https://github.com/bbatsov/ruby-style-guide#no-trailing-whitespace)
lib/tasks/cucumber.rake:22:81: C: Metrics/LineLength: Line is too long. [103/80] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
      Cucumber::Rake::Task.new({ wip: 'test:prepare' }, 'Run features that are being worked on') do |t|
                                                                                ^^^^^^^^^^^^^^^^^^^^^^^
lib/tasks/cucumber.rake:23:30: C: [Corrected] Layout/SpaceInsideHashLiteralBraces: Space inside { missing. (https://github.com/bbatsov/ruby-style-guide#spaces-operators)
    Cucumber::Rake::Task.new({:wip => 'test:prepare'}, 'Run features that are being worked on') do |t|
                             ^
lib/tasks/cucumber.rake:23:31: C: [Corrected] Style/HashSyntax: Use the new Ruby 1.9 hash syntax. (https://github.com/bbatsov/ruby-style-guide#hash-literals)
    Cucumber::Rake::Task.new({:wip => 'test:prepare'}, 'Run features that are being worked on') do |t|
                              ^^^^^^^
lib/tasks/cucumber.rake:23:53: C: [Corrected] Layout/SpaceInsideHashLiteralBraces: Space inside } missing. (https://github.com/bbatsov/ruby-style-guide#spaces-operators)
    Cucumber::Rake::Task.new({:wip => 'test:prepare'}, 'Run features that are being worked on') do |t|
                                                    ^
lib/tasks/cucumber.rake:27:1: C: [Corrected] Layout/TrailingWhitespace: Trailing whitespace detected. (https://github.com/bbatsov/ruby-style-guide#no-trailing-whitespace)
lib/tasks/cucumber.rake:28:81: C: Metrics/LineLength: Line is too long. [122/80] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
      Cucumber::Rake::Task.new({ rerun: 'test:prepare' }, 'Record failing features and run only them if any exist') do |t|
                                                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
lib/tasks/cucumber.rake:29:30: C: [Corrected] Layout/SpaceInsideHashLiteralBraces: Space inside { missing. (https://github.com/bbatsov/ruby-style-guide#spaces-operators)
    Cucumber::Rake::Task.new({:rerun => 'test:prepare'}, 'Record failing features and run only them if any exist') do |t|
                             ^
lib/tasks/cucumber.rake:29:31: C: [Corrected] Style/HashSyntax: Use the new Ruby 1.9 hash syntax. (https://github.com/bbatsov/ruby-style-guide#hash-literals)
    Cucumber::Rake::Task.new({:rerun => 'test:prepare'}, 'Record failing features and run only them if any exist') do |t|
                              ^^^^^^^^^
lib/tasks/cucumber.rake:29:55: C: [Corrected] Layout/SpaceInsideHashLiteralBraces: Space inside } missing. (https://github.com/bbatsov/ruby-style-guide#spaces-operators)
    Cucumber::Rake::Task.new({:rerun => 'test:prepare'}, 'Record failing features and run only them if any exist') do |t|
                                                      ^
lib/tasks/cucumber.rake:33:1: C: [Corrected] Layout/TrailingWhitespace: Trailing whitespace detected. (https://github.com/bbatsov/ruby-style-guide#no-trailing-whitespace)
lib/tasks/cucumber.rake:36:1: C: [Corrected] Layout/TrailingWhitespace: Trailing whitespace detected. (https://github.com/bbatsov/ruby-style-guide#no-trailing-whitespace)
lib/tasks/cucumber.rake:36:10: C: [Corrected] Style/HashSyntax: Use the new Ruby 1.9 hash syntax. (https://github.com/bbatsov/ruby-style-guide#hash-literals)
    task :all => [:ok, :wip]
         ^^^^^^^
lib/tasks/cucumber.rake:39:81: C: Metrics/LineLength: Line is too long. [89/80] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
        ::STATS_DIRECTORIES << %w[Cucumber\ features features] if File.exist?('features')
                                                                                ^^^^^^^^^
lib/tasks/cucumber.rake:40:30: C: [Corrected] Style/PercentLiteralDelimiters: %w-literals should be delimited by [ and ]. (https://github.com/bbatsov/ruby-style-guide#percent-literal-braces)
      ::STATS_DIRECTORIES << %w(Cucumber\ features features) if File.exist?('features')
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
lib/tasks/cucumber.rake:40:81: C: Metrics/LineLength: Line is too long. [86/80] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
        ::CodeStatistics::TEST_TYPES << 'Cucumber features' if File.exist?('features')
                                                                                ^^^^^^
lib/tasks/cucumber.rake:41:39: C: [Corrected] Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols. (https://github.com/bbatsov/ruby-style-guide#consistent-string-literals)
      ::CodeStatistics::TEST_TYPES << "Cucumber features" if File.exist?('features')
                                      ^^^^^^^^^^^^^^^^^^^
lib/tasks/cucumber.rake:42:1: C: [Corrected] Layout/TrailingWhitespace: Trailing whitespace detected. (https://github.com/bbatsov/ruby-style-guide#no-trailing-whitespace)
lib/tasks/cucumber.rake:47:81: C: Metrics/LineLength: Line is too long. [96/80] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
            config.annotations.register_extensions('feature') { |tag| /#\s*(#{tag}):?\s*(.*)$/ }
                                                                                ^^^^^^^^^^^^^^^^
lib/tasks/cucumber.rake:54:1: C: [Corrected] Layout/TrailingWhitespace: Trailing whitespace detected. (https://github.com/bbatsov/ruby-style-guide#no-trailing-whitespace)
lib/tasks/cucumber.rake:54:8: C: [Corrected] Style/HashSyntax: Use the new Ruby 1.9 hash syntax. (https://github.com/bbatsov/ruby-style-guide#hash-literals)
  task :cucumber => 'cucumber:ok'
       ^^^^^^^^^^^^
lib/tasks/cucumber.rake:56:1: C: [Corrected] Layout/TrailingWhitespace: Trailing whitespace detected. (https://github.com/bbatsov/ruby-style-guide#no-trailing-whitespace)
lib/tasks/cucumber.rake:56:8: C: [Corrected] Style/HashSyntax: Use the new Ruby 1.9 hash syntax. (https://github.com/bbatsov/ruby-style-guide#hash-literals)
  task :default => :cucumber
       ^^^^^^^^^^^
lib/tasks/cucumber.rake:58:8: C: [Corrected] Style/HashSyntax: Use the new Ruby 1.9 hash syntax. (https://github.com/bbatsov/ruby-style-guide#hash-literals)
  task :features => :cucumber do
       ^^^^^^^^^^^^
lib/tasks/cucumber.rake:58:81: C: Metrics/LineLength: Line is too long. [83/80] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
      STDERR.puts "*** The 'features' task is deprecated. See rake -T cucumber ***"
                                                                                ^^^
lib/tasks/cucumber.rake:60:1: C: [Corrected] Layout/TrailingWhitespace: Trailing whitespace detected. (https://github.com/bbatsov/ruby-style-guide#no-trailing-whitespace)
lib/tasks/cucumber.rake:61:81: C: Metrics/LineLength: Line is too long. [109/80] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
    # In case we don't have the generic Rails test:prepare hook, append a no-op task that we can depend upon.
                                                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
lib/tasks/cucumber.rake:64:1: C: [Corrected] Layout/TrailingWhitespace: Trailing whitespace detected. (https://github.com/bbatsov/ruby-style-guide#no-trailing-whitespace)
lib/tasks/cucumber.rake:66:1: C: [Corrected] Layout/TrailingWhitespace: Trailing whitespace detected. (https://github.com/bbatsov/ruby-style-guide#no-trailing-whitespace)
lib/tasks/cucumber.rake:66:8: C: [Corrected] Style/HashSyntax: Use the new Ruby 1.9 hash syntax. (https://github.com/bbatsov/ruby-style-guide#hash-literals)
  task :stats => 'cucumber:statsetup'
       ^^^^^^^^^
lib/tasks/cucumber.rake:68:8: C: [Corrected] Style/HashSyntax: Use the new Ruby 1.9 hash syntax. (https://github.com/bbatsov/ruby-style-guide#hash-literals)
  task :notes => 'cucumber:annotations_setup'
       ^^^^^^^^^
lib/tasks/cucumber.rake:71:81: C: Metrics/LineLength: Line is too long. [97/80] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
      abort 'Cucumber rake task is not available. Be sure to install cucumber as a gem or plugin'
                                                                                ^^^^^^^^^^^^^^^^^
lib/tasks/auto_generate_diagram.rake:4:1: C: [Corrected] Style/IfUnlessModifier: Favor modifier if usage when having a single-line body. Another good alternative is the usage of control flow &&/||. (https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier)
if Rails.env.development?
^^
lib/tasks/dev.rake:9:1: C: [Corrected] Layout/EmptyLines: Extra blank line detected. (https://github.com/bbatsov/ruby-style-guide#two-or-more-empty-lines)
lib/tasks/dev.rake:9:1: C: [Corrected] Layout/TrailingWhitespace: Trailing whitespace detected. (https://github.com/bbatsov/ruby-style-guide#no-trailing-whitespace)
lib/tasks/dev.rake:14:1: C: [Corrected] Layout/EmptyLinesAroundBlockBody: Extra empty line detected at block body end. (https://github.com/bbatsov/ruby-style-guide#empty-lines-around-bodies)
lib/tasks/dev.rake:14:1: C: [Corrected] Layout/TrailingWhitespace: Trailing whitespace detected. (https://github.com/bbatsov/ruby-style-guide#no-trailing-whitespace)

110 files inspected, 158 offenses detected, 101 offenses corrected

Actual behavior

exception:

6 files inspected, 29 offenses detected
undefined method `range_between' for #<RuboCop::Cop::RSpec::HookArgument:0x00007f85dd45fdc0>
/Users/geekoncoffee/.rvm/gems/ruby-2.5.0@voyage_test/gems/rubocop-rspec-1.23.0/lib/rubocop/cop/rspec/hook_argument.rb:127:in `argument_range'
/Users/geekoncoffee/.rvm/gems/ruby-2.5.0@voyage_test/gems/rubocop-rspec-1.23.0/lib/rubocop/cop/rspec/hook_argument.rb:93:in `block in autocorrect'
/Users/geekoncoffee/.rvm/gems/ruby-2.5.0@voyage_test/gems/rubocop-0.53.0/lib/rubocop/cop/corrector.rb:61:in `block (2 levels) in rewrite'
/Users/geekoncoffee/.rvm/gems/ruby-2.5.0@voyage_test/gems/parser-2.5.0.2/lib/parser/source/tree_rewriter.rb:220:in `transaction'
/Users/geekoncoffee/.rvm/gems/ruby-2.5.0@voyage_test/gems/rubocop-0.53.0/lib/rubocop/cop/corrector.rb:60:in `block in rewrite'
/Users/geekoncoffee/.rvm/gems/ruby-2.5.0@voyage_test/gems/rubocop-0.53.0/lib/rubocop/cop/corrector.rb:58:in `each'
/Users/geekoncoffee/.rvm/gems/ruby-2.5.0@voyage_test/gems/rubocop-0.53.0/lib/rubocop/cop/corrector.rb:58:in `rewrite'
/Users/geekoncoffee/.rvm/gems/ruby-2.5.0@voyage_test/gems/rubocop-0.53.0/lib/rubocop/cop/team.rb:126:in `autocorrect_all_cops'
/Users/geekoncoffee/.rvm/gems/ruby-2.5.0@voyage_test/gems/rubocop-0.53.0/lib/rubocop/cop/team.rb:70:in `autocorrect'
/Users/geekoncoffee/.rvm/gems/ruby-2.5.0@voyage_test/gems/rubocop-0.53.0/lib/rubocop/cop/team.rb:98:in `block in offenses'
/Users/geekoncoffee/.rvm/gems/ruby-2.5.0@voyage_test/gems/rubocop-0.53.0/lib/rubocop/cop/team.rb:115:in `investigate'
/Users/geekoncoffee/.rvm/gems/ruby-2.5.0@voyage_test/gems/rubocop-0.53.0/lib/rubocop/cop/team.rb:94:in `offenses'
/Users/geekoncoffee/.rvm/gems/ruby-2.5.0@voyage_test/gems/rubocop-0.53.0/lib/rubocop/cop/team.rb:44:in `inspect_file'
/Users/geekoncoffee/.rvm/gems/ruby-2.5.0@voyage_test/gems/rubocop-0.53.0/lib/rubocop/runner.rb:259:in `inspect_file'
/Users/geekoncoffee/.rvm/gems/ruby-2.5.0@voyage_test/gems/rubocop-0.53.0/lib/rubocop/runner.rb:206:in `block in do_inspection_loop'
/Users/geekoncoffee/.rvm/gems/ruby-2.5.0@voyage_test/gems/rubocop-0.53.0/lib/rubocop/runner.rb:238:in `block in iterate_until_no_changes'
/Users/geekoncoffee/.rvm/gems/ruby-2.5.0@voyage_test/gems/rubocop-0.53.0/lib/rubocop/runner.rb:231:in `loop'
/Users/geekoncoffee/.rvm/gems/ruby-2.5.0@voyage_test/gems/rubocop-0.53.0/lib/rubocop/runner.rb:231:in `iterate_until_no_changes'
/Users/geekoncoffee/.rvm/gems/ruby-2.5.0@voyage_test/gems/rubocop-0.53.0/lib/rubocop/runner.rb:202:in `do_inspection_loop'
/Users/geekoncoffee/.rvm/gems/ruby-2.5.0@voyage_test/gems/rubocop-0.53.0/lib/rubocop/runner.rb:111:in `block in file_offenses'
/Users/geekoncoffee/.rvm/gems/ruby-2.5.0@voyage_test/gems/rubocop-0.53.0/lib/rubocop/runner.rb:121:in `file_offense_cache'
/Users/geekoncoffee/.rvm/gems/ruby-2.5.0@voyage_test/gems/rubocop-0.53.0/lib/rubocop/runner.rb:109:in `file_offenses'
/Users/geekoncoffee/.rvm/gems/ruby-2.5.0@voyage_test/gems/rubocop-0.53.0/lib/rubocop/runner.rb:100:in `process_file'
/Users/geekoncoffee/.rvm/gems/ruby-2.5.0@voyage_test/gems/rubocop-0.53.0/lib/rubocop/runner.rb:78:in `block in each_inspected_file'
/Users/geekoncoffee/.rvm/gems/ruby-2.5.0@voyage_test/gems/rubocop-0.53.0/lib/rubocop/runner.rb:75:in `each'
/Users/geekoncoffee/.rvm/gems/ruby-2.5.0@voyage_test/gems/rubocop-0.53.0/lib/rubocop/runner.rb:75:in `reduce'
/Users/geekoncoffee/.rvm/gems/ruby-2.5.0@voyage_test/gems/rubocop-0.53.0/lib/rubocop/runner.rb:75:in `each_inspected_file'
/Users/geekoncoffee/.rvm/gems/ruby-2.5.0@voyage_test/gems/rubocop-0.53.0/lib/rubocop/runner.rb:67:in `inspect_files'
/Users/geekoncoffee/.rvm/gems/ruby-2.5.0@voyage_test/gems/rubocop-0.53.0/lib/rubocop/runner.rb:39:in `run'
/Users/geekoncoffee/.rvm/gems/ruby-2.5.0@voyage_test/gems/rubocop-0.53.0/lib/rubocop/cli.rb:156:in `execute_runner'
/Users/geekoncoffee/.rvm/gems/ruby-2.5.0@voyage_test/gems/rubocop-0.53.0/lib/rubocop/cli.rb:84:in `execute_runners'
/Users/geekoncoffee/.rvm/gems/ruby-2.5.0@voyage_test/gems/rubocop-0.53.0/lib/rubocop/cli.rb:41:in `run'
/Users/geekoncoffee/.rvm/gems/ruby-2.5.0@voyage_test/gems/rubocop-0.53.0/bin/rubocop:13:in `block in <top (required)>'
/Users/geekoncoffee/.rvm/rubies/ruby-2.5.0/lib/ruby/2.5.0/benchmark.rb:308:in `realtime'
/Users/geekoncoffee/.rvm/gems/ruby-2.5.0@voyage_test/gems/rubocop-0.53.0/bin/rubocop:12:in `<top (required)>'
/Users/geekoncoffee/.rvm/gems/ruby-2.5.0@voyage_test/bin/rubocop:23:in `load'
/Users/geekoncoffee/.rvm/gems/ruby-2.5.0@voyage_test/bin/rubocop:23:in `<main>'
/Users/geekoncoffee/.rvm/gems/ruby-2.5.0@voyage_test/bin/ruby_executable_hooks:15:in `eval'
/Users/geekoncoffee/.rvm/gems/ruby-2.5.0@voyage_test/bin/ruby_executable_hooks:15:in `<main>'

Steps to reproduce the problem

Still trying to track down what causes the issue. If I run a rubocop -awith the previous release (0.52.1 I think), it resolves the following issues, and then I don't get the following error if I upgrade back to 0.53.0.

RuboCop version

○ rubocop -V rvm:(ruby-2.5.0@voyage_test)
0.53.0 (using Parser 2.5.0.2, running on ruby 2.5.0 x86_64-darwin17)

Most helpful comment

It will be fixed in RuboCop RSpec > 1.24.0 later today.

All 5 comments

Thanks for opening issue.

This issue is caused by the fact that RuboCop 0.53.0 and RuboCop RSpec 1.23.0 don't combine.

As a workaround, you can specify gem 'rubocop', '~> 0.52.1' in your Gemfile.

The edge of RuboCop RSpec fixes this issue, probably it will be solved with the release of the new RuboCop RSpec > 1.23.0.

Additional information, the following is PR related to this Issue.
https://github.com/bbatsov/rubocop/pull/5366

cc @bquorning

It will be fixed in RuboCop RSpec > 1.24.0 later today.

@bquorning Great! Thank you for quick response ❤️
@GeekOnCoffee Running bundle update probably will solve it 😃

Thanks everyone, a fresh app spinup did in fact resolve this by pulling in the later version!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

printercu picture printercu  ·  3Comments

bquorning picture bquorning  ·  3Comments

deivid-rodriguez picture deivid-rodriguez  ·  3Comments

millisami picture millisami  ·  3Comments

AndreiMotinga picture AndreiMotinga  ·  3Comments