From 4f9cc54fb4ea014d5fc1a33dc022bfa88bc5309a Mon Sep 17 00:00:00 2001 From: Koichi ITO Date: Sat, 6 Aug 2022 01:21:31 +0900 Subject: [PATCH] Fix a broken link 404 Page Not Found is returned when https://docs.rubocop.org/rubocop/cop_api_v1_changelog.html is accessed. https://docs.rubocop.org/rubocop/v1_upgrade_notes.html would be the intended URL. --- lib/rubocop/cop/cop.rb | 2 +- lib/rubocop/cop/legacy/corrections_proxy.rb | 2 +- lib/rubocop/cop/legacy/corrector.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/rubocop/cop/cop.rb b/lib/rubocop/cop/cop.rb index 9e6cbf7b02f..4f1f40bce41 100644 --- a/lib/rubocop/cop/cop.rb +++ b/lib/rubocop/cop/cop.rb @@ -7,7 +7,7 @@ module RuboCop module Cop # @deprecated Use Cop::Base instead # Legacy scaffold for Cops. - # See https://docs.rubocop.org/rubocop/cop_api_v1_changelog.html + # See https://docs.rubocop.org/rubocop/v1_upgrade_notes.html class Cop < Base attr_reader :offenses diff --git a/lib/rubocop/cop/legacy/corrections_proxy.rb b/lib/rubocop/cop/legacy/corrections_proxy.rb index 5344b05c53d..fb78189dd4d 100644 --- a/lib/rubocop/cop/legacy/corrections_proxy.rb +++ b/lib/rubocop/cop/legacy/corrections_proxy.rb @@ -4,7 +4,7 @@ module RuboCop module Cop module Legacy # Legacy support for Corrector#corrections - # See https://docs.rubocop.org/rubocop/cop_api_v1_changelog.html + # See https://docs.rubocop.org/rubocop/v1_upgrade_notes.html class CorrectionsProxy def initialize(corrector) @corrector = corrector diff --git a/lib/rubocop/cop/legacy/corrector.rb b/lib/rubocop/cop/legacy/corrector.rb index e8c080b5c3b..f2b84828176 100644 --- a/lib/rubocop/cop/legacy/corrector.rb +++ b/lib/rubocop/cop/legacy/corrector.rb @@ -4,7 +4,7 @@ module RuboCop module Cop module Legacy # Legacy Corrector for v0 API support. - # See https://docs.rubocop.org/rubocop/cop_api_v1_changelog.html + # See https://docs.rubocop.org/rubocop/v1_upgrade_notes.html class Corrector < RuboCop::Cop::Corrector # Support legacy second argument def initialize(source, corr = [])