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 # : 336 tag : review md5 : 0712ce13f6ce50af74864296a3b53a65

# [review] - Populate @tag_list, then check size instead

if @cl_ignore_set
    debug_print "Ignores set from command line, ignoring rc [ignores]\n"
    next
end

# Same as previous for ignores (regex same as dirs)
# Don't eliminate trailing / because not sure if dir can have
# same name as file (Linux it can't, but not sure about Win/Mac)
# [review] - Can Win/Mac have dir + file with same name in same dir?
_mtch = _line.match(/^((\w+)?\.?\/?)+/)[0]
if !_mtch.empty?
    @ignore_list.push(_mtch) 
    debug_print "#{ _mtch } added to @ignore_list\n"
end
debug_print "@ignore_list --> #{ @ignore_list }\n"

nhmood avatar Nov 21 '13 16:11 nhmood