watson-ruby
watson-ruby copied to clipboard
Should the tag structure be self contained in the hash [lib/watson/printer.rb]
filename : lib/watson/printer.rb line # : 240 tag : review md5 : 343388179dd367286519f7c4118d6200
# [review] - Should the tag structure be self contained in the hash
# Or is it ok to reference @config to figure out the tags
@config.tag_list.each do | _tag |
debug_print "Checking for #{ _tag }\n"
# [review] - Better way to ignore tags through structure (hash) data
# Maybe have individual has_issues for each one?
if entry[_tag].size.zero?
debug_print "#{ _tag } has no issues, skipping\n"
cprint "\n"
next
end
debug_print "#{ _tag } has issues in it, print!\n"
print_status "#{ _tag }", BLUE
cprint "\n"