From 9386ca9557d8e386ab4dec1d352665245571d801 Mon Sep 17 00:00:00 2001 From: Koichi ITO Date: Wed, 5 Mar 2025 14:54:38 +0900 Subject: [PATCH] Use extended `CopsDocumentationGenerator` Follow-up to https://github.com/rubocop/rubocop-rspec/pull/2057. Replacing the workaround implemention `RuboCop::ConfigLoader.inject_defaults!` with the plugin documentation feature supported by `CopsDocumentationGenerator`. --- tasks/cops_documentation.rake | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tasks/cops_documentation.rake b/tasks/cops_documentation.rake index df2e08a..7bbe3c7 100644 --- a/tasks/cops_documentation.rake +++ b/tasks/cops_documentation.rake @@ -12,10 +12,8 @@ end desc 'Generate docs of all cops departments' task generate_cops_documentation: :yard_for_generate_documentation do - RuboCop::ConfigLoader.inject_defaults!("#{__dir__}/../config/default.yml") - generator = CopsDocumentationGenerator.new( - departments: %w[RSpecRails] + departments: %w[RSpecRails], plugin_name: 'rubocop-rspec_rails' ) generator.call end