-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
excluding vendor
by default
#806
excluding vendor
by default
#806
Conversation
I'd go one further and say all of |
I guess this makes sense (ignoring the entire |
👍 for |
Some projects have vendor directories further down. How about |
That seems like an increased risk of false positives. I have directories
|
I'm inclined to agree with @bjeanes - false positives probably aren't worth the risk given most projects won't have that setup. |
I Just added a commit here to implement exclusion of |
@jeremyolliver Please, update the changelog as well. |
@jeremyolliver also double check your commit message. It looks like you accidentally committed |
Whoops. done and done. I rebased, added an entry into the changelog with a similar format and corrected the extra line in the commit message |
We shouldn't be checking third party code which we don't control for style. Common items in here may be a bundle install to vendor/bundle or other packaged third party items.
👍 |
Thanks :) |
I'm not sure what the intentions are on providing defaults, I note that there's currently no files excluded from the default configuration. I'm proposing that the rubocop defaults, should exclude files matching
vendor/bundle/**
. The reason for this being that it's a default bundle install location for CI servers (it's the default path bundler uses for the--deployment
flag, and travis-ci installs the bundle there by default, and that running rubocop over third party dependencies, is not intended at all, as their style preferences are their own, and in any case, not what the user is seeking to check.I can't think of any really good reasons why
vendor/bundle
would be wanted to be checked, and in any case, seems a logical default setting to me, unless I'm missing something. Anybody care to provide some counter arguments for why not, or does it sound like a good idea?