watson-ruby icon indicating copy to clipboard operation
watson-ruby copied to clipboard

Better way to ignore tags through structure (hash) data [lib/watson/printer.rb]

Open nhmood opened this issue 11 years ago • 0 comments

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

nhmood avatar Nov 21 '13 16:11 nhmood