Skip to content

Commit 9386ca9

Browse files
committed
Use extended CopsDocumentationGenerator
Follow-up to rubocop/rubocop-rspec#2057. Replacing the workaround implemention `RuboCop::ConfigLoader.inject_defaults!` with the plugin documentation feature supported by `CopsDocumentationGenerator`.
1 parent acda4a5 commit 9386ca9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tasks/cops_documentation.rake

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

1313
desc 'Generate docs of all cops departments'
1414
task generate_cops_documentation: :yard_for_generate_documentation do
15-
RuboCop::ConfigLoader.inject_defaults!("#{__dir__}/../config/default.yml")
16-
1715
generator = CopsDocumentationGenerator.new(
18-
departments: %w[RSpecRails]
16+
departments: %w[RSpecRails], plugin_name: 'rubocop-rspec_rails'
1917
)
2018
generator.call
2119
end

0 commit comments

Comments
 (0)