Sha256: f5df73a30ee5dee0d50ed81542eb68646dee5e370a9d2b229d4d2c2ebe48c23e
Contents?: true
Size: 403 Bytes
Versions: 4
Compression:
Stored size: 403 Bytes
Contents
# frozen_string_literal: true module PuppetStrings::Yard::Handlers::Helpers # Logs a warning if a summary tag has more than 140 characters 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 end
Version data entries
4 entries across 4 versions & 1 rubygems