From b6e8123a7a05b0a56ee92c487a0913cf52d6a6ce Mon Sep 17 00:00:00 2001 From: Stan Lo Date: Sun, 12 Jan 2025 21:35:02 +0000 Subject: [PATCH] Enable warn_missing_rdoc_ref by default This feature has been tested in RDoc and IRB, as well as my local Ruby project for a while. It's been finding and now preventing dead rdoc-ref links effectively. So I think it's a great feature to be enabled by default. --- lib/rdoc/options.rb | 2 +- test/rdoc/test_rdoc_options.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rdoc/options.rb b/lib/rdoc/options.rb index d6c8db2c28..a50ea806d7 100644 --- a/lib/rdoc/options.rb +++ b/lib/rdoc/options.rb @@ -410,7 +410,7 @@ def init_ivars # :nodoc: @update_output_dir = true @verbosity = 1 @visibility = :protected - @warn_missing_rdoc_ref = false + @warn_missing_rdoc_ref = true @webcvs = nil @write_options = false @encoding = Encoding::UTF_8 diff --git a/test/rdoc/test_rdoc_options.rb b/test/rdoc/test_rdoc_options.rb index 9fc6830239..7ccf789877 100644 --- a/test/rdoc/test_rdoc_options.rb +++ b/test/rdoc/test_rdoc_options.rb @@ -82,7 +82,7 @@ def test_to_yaml 'template_stylesheets' => [], 'title' => nil, 'visibility' => :protected, - 'warn_missing_rdoc_ref' => false, + 'warn_missing_rdoc_ref' => true, 'webcvs' => nil, 'skip_tests' => true, 'apply_default_exclude' => true,