Method: Danger::PluginParser#setup_yard

Defined in:
lib/danger/plugin_support/plugin_parser.rb

#setup_yard(verbose) ⇒ Object



49
50
51
52
53
54
55
56
57
58
59
60
# File 'lib/danger/plugin_support/plugin_parser.rb', line 49

def setup_yard(verbose)
  require 'yard'

  # Unless specifically asked, don't output anything.
  unless verbose
    YARD::Logger.instance.level = YARD::Logger::FATAL
  end

  # Add some of our custom tags
  YARD::Tags::Library.define_tag('tags', :tags)
  YARD::Tags::Library.define_tag('availability', :availability)
end