Sha256: c1923ad4359504bc06adc51cae10c88a598fafe1e5da0bd39e1a2bcb3d9ae0c2
Contents?: true
Size: 689 Bytes
Versions: 9
Compression:
Stored size: 689 Bytes
Contents
# frozen_string_literal: true require 'pathname' require 'yaml' require 'rubocop' require_relative 'rubocop/cop/capybara/mixin/capybara_help' require_relative 'rubocop/cop/capybara/mixin/css_selector' require_relative 'rubocop/cop/capybara_cops' project_root = File.join(__dir__, '..') RuboCop::ConfigLoader.inject_defaults!(project_root) obsoletion = File.join(project_root, 'config', 'obsoletion.yml') RuboCop::ConfigObsoletion.files << obsoletion if File.exist?(obsoletion) RuboCop::Cop::Style::TrailingCommaInArguments.singleton_class.prepend( Module.new do def autocorrect_incompatible_with super.push(RuboCop::Cop::Capybara::CurrentPathExpectation) end end )
Version data entries
9 entries across 9 versions & 4 rubygems