codeclimate-rubocop icon indicating copy to clipboard operation
codeclimate-rubocop copied to clipboard

Rails/HttpStatus cop fails because Rack is missing

Open andyw8 opened this issue 7 years ago • 1 comments

If the rack gem isn't present, the engine emits errors such as:

An error occurred while Rails/HttpStatus cop was inspecting /code/app/controllers/errors_controller.rb:6:4.

See https://github.com/rubocop-hq/rubocop/issues/5745

A PR was opened https://github.com/rubocop-hq/rubocop/pull/5707 but didn't get merged.

andyw8 avatar Dec 06 '18 01:12 andyw8

I think that this issue is solved in RuboCop Rails gem.

  • https://github.com/rubocop-hq/rubocop-rails/pull/36
  • https://github.com/rubocop-hq/rubocop-rails/pull/68

Please use RuboCop Rails gem when using Rails cops because these cops has been removed from RuboCop 0.72.

koic avatar Jul 02 '19 07:07 koic