Skip to content

Commit ab76d4f

Browse files
committed
Use extended CopsDocumentationGenerator
Follow up rubocop/rubocop#13908. Replacing the workaround implemented in #2047 with the plugin documentation feature supported by `CopsDocumentationGenerator`.
1 parent d4000f8 commit ab76d4f

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

tasks/cops_documentation.rake

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,8 @@ end
1212

1313
desc 'Generate docs of all cops departments'
1414
task generate_cops_documentation: :yard_for_generate_documentation do
15-
loaded_plugins = RuboCop::ConfigLoader.default_configuration.loaded_plugins
16-
if loaded_plugins.none? { |plugin| plugin.about.name == 'rubocop-rspec' }
17-
RuboCop::ConfigLoader.inject_defaults!("#{__dir__}/../config/default.yml")
18-
end
19-
2015
generator = CopsDocumentationGenerator.new(
21-
departments: %w[RSpec]
16+
departments: %w[RSpec], plugin_name: 'rubocop-rspec'
2217
)
2318
generator.call
2419
end

0 commit comments

Comments
 (0)