Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to exclude directories in addition to files. #542

Merged
merged 3 commits into from
May 30, 2016

Conversation

gurrinder
Copy link
Contributor

@gurrinder gurrinder commented Apr 25, 2016

Add ability to exclude directories in addition to files.
E.g. exclude: ['Vendor/*']
Related issue: #503

@@ -409,7 +409,7 @@ def self.filter_excluded_files(json)
excluded_files = Config.instance.excluded_files
json.map do |doc|
key = doc.keys.first
doc[key] unless excluded_files.include?(Pathname(key))
doc[key] unless excluded_files.detect{|file| key.include? file.to_s}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not use File.fnmatch ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no particular reason. Just didn't think of it :) I can make the change if you'd like.

@jpsim
Copy link
Collaborator

jpsim commented Apr 27, 2016

There are a few easy rubocop style violations that need to be addressed: https://travis-ci.org/realm/jazzy/builds/126147351

@gurrinder
Copy link
Contributor Author

Thanks @jpsim . Updated.

@jpsim
Copy link
Collaborator

jpsim commented May 30, 2016

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants