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

Request: CLI option for listing all the files rubocop plans to inspect #2179

Closed
4 tasks done
maxjacobson opened this issue Aug 24, 2015 · 6 comments
Closed
4 tasks done

Comments

@maxjacobson
Copy link
Contributor

Use case:

I'm using Circle CI for continuous integration, and it has a neat feature where you can split work over multiple machines and they'll be run in parallel. Here's a page from their docs explaining how to configure your build to split your tests across multiple machines: https://circleci.com/docs/parallel-manual-setup

If I had easy access to the list of files RuboCop is going to inspect (based on the default list + whatever is added in AllCops: Include) I could pipe that into a script like the bash script referenced in that page, and then split the work of inspecting code style across multiple machines.

What do you think? I'm happy to try and do it if you think it might be useful to other people than just me 😄

  • pick a name for the option
  • add tests for the option
  • make the tests pass
  • document in README
@bbatsov
Copy link
Collaborator

bbatsov commented Aug 24, 2015

Another use case for this would be simply check if you got your excludes right. :-)

@mattjmcnaughton
Copy link
Contributor

👍 This sounds like a great idea!

@stardiviner
Copy link

Great idea, I like it too.

@bbatsov
Copy link
Collaborator

bbatsov commented Aug 25, 2015

I guess the name of the option can be --list-target-files.

@maxjacobson
Copy link
Contributor Author

Glad to see the enthusiasm 😄 #2184

@bbatsov bbatsov closed this as completed Aug 31, 2015
@jwg2s
Copy link

jwg2s commented Dec 20, 2017

Anyone used this with test suite parallelism to have multiple containers run a subset of rubocop file targets? Would love an example using bash (with travis), otherwise will just hack out my own and post it here for others who are looking for something like this

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

No branches or pull requests

5 participants