Skip to content

Commit

Permalink
Follow "Make it possible to set StyleGuideBaseURL per department"
Browse files Browse the repository at this point in the history
  • Loading branch information
koic committed Aug 19, 2019
1 parent 1c993c3 commit e551c9b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tasks/cops_documentation.rake
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,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')
Expand Down

0 comments on commit e551c9b

Please sign in to comment.