Skip to content

Commit

Permalink
Merge pull request #45 from rubocop/remove-fixme
Browse files Browse the repository at this point in the history
Remove temporary fixes in #14
  • Loading branch information
ydah committed Jun 19, 2024
2 parents 82e05ec + fe50d6a commit 7a26689
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions lib/rubocop-rspec_rails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,3 @@

project_root = File.join(__dir__, '..')
RuboCop::ConfigLoader.inject_defaults!(project_root)

# FIXME: This is a workaround for the following issue:
# https://github.com/rubocop/rubocop-rspec_rails/issues/8
module RuboCop
module Cop
class Registry # rubocop:disable Style/Documentation
prepend(Module.new do
def qualified_cop_name(name, path, warn: true)
return super unless name == 'RSpec/Rails/HttpStatus'

badge = Badge.parse(name)
resolve_badge(badge, qualify_badge(badge).first, path)
end
end)
end
end
end

0 comments on commit 7a26689

Please sign in to comment.