Skip to content

Commit

Permalink
Merge pull request PaulTaykalo#11 from wata/feature/ignore_directories
Browse files Browse the repository at this point in the history
Ignore directories
  • Loading branch information
PaulTaykalo committed Aug 28, 2018
2 parents 11f19e3 + 48e0acf commit 6a11e98
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion unused.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ def to_xcode
class Unused
def find
items = []
all_files = Dir.glob("**/*.swift")
all_files = Dir.glob("**/*.swift").reject do |path|
File.directory?(path)
end

all_files.each { |my_text_file|
file_items = grab_items(my_text_file)
Expand Down

0 comments on commit 6a11e98

Please sign in to comment.