Skip to content

Commit

Permalink
Ignore tests directories
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulTaykalo committed Apr 27, 2018
1 parent 3a68e4f commit 2e2af12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unused.rb
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def find_usages_in_files(files, xibs, items_in)
}


items = items.select { |f| !f.file.start_with?("Pods/") && !f.file.end_with?("Tests.swift") && !f.file.end_with?("Spec.swift") }
items = items.select { |f| !f.file.start_with?("Pods/") && !f.file.end_with?("Tests.swift") && !f.file.end_with?("Spec.swift") && !f.file.include?("Tests/") }
if items.length > 0
if ARGV[0] == "xcode"
$stderr.puts "#{items.map { |e| e.to_xcode }.join("\n")}"
Expand Down

0 comments on commit 2e2af12

Please sign in to comment.