watson-ruby
watson-ruby copied to clipboard
Better way to ignore tags through structure (hash) data [lib/watson/printer.rb]
filename : lib/watson/printer.rb line # : 245 tag : review md5 : 2882c6fee92fb6ae2702ed8e058b70f2
# [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"
# Go through each issue in tag
entry[_tag].each do | _issue |
cprint WHITE + " line #{ _issue[:line_number] } - " + RESET
cprint BOLD + "#{ _issue[:title] }" + RESET