Sha256: 6e8297a41d49ab459ad50b877ef385a557d785e70456574bedc52efeb08c3102

Contents?: true

Size: 829 Bytes

Versions: 2

Compression:

Stored size: 829 Bytes

Contents

# frozen_string_literal: true

require 'pathname'
require 'yaml'

require 'rubocop'
require 'rubocop/rspec/language'

require_relative 'rubocop/rspec_rails/version'

require 'rubocop/cop/rspec/base'
require_relative 'rubocop/cop/rspec_rails_cops'

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

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
katalyst-govuk-formbuilder-1.9.2 vendor/bundle/ruby/3.3.0/gems/rubocop-rspec_rails-2.30.0/lib/rubocop-rspec_rails.rb
rubocop-rspec_rails-2.30.0 lib/rubocop-rspec_rails.rb