lib/rubocop/rspec/config_formatter.rb in rubocop-rspec-2.15.0 vs lib/rubocop/rspec/config_formatter.rb in rubocop-rspec-2.16.0

- old
+ new

@@ -7,11 +7,11 @@ # Builds a YAML config file from two config hashes class ConfigFormatter EXTENSION_ROOT_DEPARTMENT = %r{^(RSpec/)}.freeze SUBDEPARTMENTS = %(RSpec/Capybara RSpec/FactoryBot RSpec/Rails) AMENDMENTS = %(Metrics/BlockLength) - COP_DOC_BASE_URL = 'https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/' + COP_DOC_BASE_URL = 'https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/' def initialize(config, descriptions) @config = config @descriptions = descriptions end @@ -45,10 +45,10 @@ config[key] = '~' if value.nil? end end def reference(cop) - COP_DOC_BASE_URL + cop.sub('RSpec/', '') + COP_DOC_BASE_URL + cop end attr_reader :config, :descriptions end end