lib/cc/workspace.rb in codeclimate-0.33.0 vs lib/cc/workspace.rb in codeclimate-0.34.0

- old
+ new

@@ -21,10 +21,15 @@ end end def remove(patterns) Array(patterns).each do |pattern| - path_tree.exclude_paths(Exclusion.new(pattern).expand) + exclusion = Exclusion.new(pattern) + if exclusion.negated? + path_tree.include_paths(exclusion.expand) + else + path_tree.exclude_paths(exclusion.expand) + end end end private