-
Notifications
You must be signed in to change notification settings - Fork 18
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
Too many ruby files. #129
Comments
D'oh! In addition to using something akin to xargs, generally tools support passing a list of files to analyze within a text file--that'd probably be the best thing to add for tools that support it, with a feature to break things up in xargs-like chunks if not. |
In general there's a tension between delegating a lot of decisions to the tools involved and having the quality gem have control. I've taken the approach that file selection is on the quality gem side of the line there - it uses the https://github.com/github/linguist gem to identify file types and allow configuration, which does file content sniffing (it's the same gem that github.com uses to figure out how to syntax highlight and render different files). Some reasons why that has been a benefit:
In any case, it'd be a bummer to break existing configuration of the file exclusion by changing policies, and those benefits have been compelling at least for the use I've seen, so my take is that adding support for the list-of-files-file and/or xargs-like approach seems right. Note that we wouldn't want to use xargs directly, as I'd like to at least theoretically maintain Windows support. I've never tested it personally, but if someone wants to figure that out and add CI for it so I don't break it in the future, it seems like it ought to be within reach :) |
I am getting
Errno::E2BIG: Argument list too long
for each of the tools that use the list of ruby files. This happens in debian and in MacOS. Seems like all of these tools can find the files without listing. Is there some reason to list them? If there is, then to support large projects, then a bunch of code would need to change to support the use of
xargs
. Or perhaps I am missing something?The text was updated successfully, but these errors were encountered: