Module: PuppetStrings::Yard::Handlers::Helpers

Defined in:
lib/puppet-strings/yard/handlers/helpers.rb

Class Method Summary collapse

Class Method Details

.validate_summary_tag(object) ⇒ Object

Logs a warning if a summary tag has more than 140 characters



3
4
5
6
7
# File 'lib/puppet-strings/yard/handlers/helpers.rb', line 3

def self.validate_summary_tag(object)
  if object.has_tag?(:summary) && object.tag(:summary).text.length > 140
    log.warn "The length of the summary for #{object.type} '#{object.name}' exceeds the recommended limit of 140 characters."
  end
end