codeclimate-rubocop
codeclimate-rubocop copied to clipboard
Rails/HttpStatus cop fails because Rack is missing
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.
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.