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

Populate @tag_list, then check size instead [lib/watson/config.rb]

Open nhmood opened this issue 11 years ago • 0 comments

filename : lib/watson/config.rb line # : 316 tag : review md5 : 0712ce13f6ce50af74864296a3b53a65

                # [review] - Populate @tag_list, then check size instead
                if @cl_tag_set
                    debug_print "Tags set from command line, ignoring rc [tags]\n"
                    next 
                end
                    # Same as previous for tags
                # [review] - Need to think about what kind of tags this supports
                # Check compatibility with GitHub + Bitbucket and what makes sense
                # Only supports single word+number tags
                _mtch = _line.match(/^(\S+)/)[0]
                if !_mtch.empty?
                    @tag_list.push(_mtch)
                    debug_print "#{ _mtch } added to @tag_list\n"
                end
                debug_print "@tag_list --> #{ @tag_list }\n"

nhmood avatar Nov 21 '13 16:11 nhmood