diff --git a/tasks/cops_documentation.rake b/tasks/cops_documentation.rake index e04229ad50..f3b5c38900 100644 --- a/tasks/cops_documentation.rake +++ b/tasks/cops_documentation.rake @@ -151,7 +151,9 @@ task generate_cops_documentation: :yard_for_generate_documentation do def references(config, cop) cop_config = config.for_cop(cop) - urls = RuboCop::Cop::MessageAnnotator.new(config, cop_config, {}).urls + urls = RuboCop::Cop::MessageAnnotator.new( + config, cop.name, cop_config, {} + ).urls return '' if urls.empty? content = h3('References')