Sha256: a6a04998272fd2180e4f41b1c733d9d2855d3206e29912a4131297680614caa1
Contents?: true
Size: 885 Bytes
Versions: 1
Compression:
Stored size: 885 Bytes
Contents
# frozen_string_literal: true require 'pathname' require 'yaml' require 'rubocop' require 'rubocop/rspec/language/node_pattern' 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 AmbiguousCopName # 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubocop-rspec_rails-2.28.2 | lib/rubocop-rspec_rails.rb |