We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cd91408 + 30b09a3 commit e8ac379Copy full SHA for e8ac379
tasks/cops_documentation.rake
@@ -12,7 +12,10 @@ end
12
13
desc 'Generate docs of all cops departments'
14
task generate_cops_documentation: :yard_for_generate_documentation do
15
- RuboCop::ConfigLoader.inject_defaults!("#{__dir__}/../config/default.yml")
+ 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
20
generator = CopsDocumentationGenerator.new(
21
departments: %w[RSpec]
0 commit comments