Skip to content

Commit

Permalink
Merge pull request #2057 from koic/use_enhanced_cop_documentation_gen…
Browse files Browse the repository at this point in the history
…erator

Use extended `CopsDocumentationGenerator`
  • Loading branch information
ydah authored Mar 4, 2025
2 parents d4000f8 + ab76d4f commit 929d9e6
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions tasks/cops_documentation.rake
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,8 @@ end

desc 'Generate docs of all cops departments'
task generate_cops_documentation: :yard_for_generate_documentation do
loaded_plugins = RuboCop::ConfigLoader.default_configuration.loaded_plugins
if loaded_plugins.none? { |plugin| plugin.about.name == 'rubocop-rspec' }
RuboCop::ConfigLoader.inject_defaults!("#{__dir__}/../config/default.yml")
end

generator = CopsDocumentationGenerator.new(
departments: %w[RSpec]
departments: %w[RSpec], plugin_name: 'rubocop-rspec'
)
generator.call
end
Expand Down

0 comments on commit 929d9e6

Please sign in to comment.