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

rubocop --out does not create parent directories #1389

Closed
hashar opened this issue Oct 14, 2014 · 0 comments · Fixed by #1391
Closed

rubocop --out does not create parent directories #1389

hashar opened this issue Oct 14, 2014 · 0 comments · Fixed by #1391

Comments

@hashar
Copy link

hashar commented Oct 14, 2014

It would be rather useful to have rubocop create parent directories of the file specified with --out

$ rubocop --format html --out log/rubocop.html
No such file or directory @ rb_sysopen - log/rubocop.html
...

My purpose is to have rubocop run via Jenkins on patch submission. By convention we put all result in a directory /log/ which is always created by Jenkins since it might not exist in the software repository.

We would like /log/ to be defined in .rubocop.yml but then, developers would have the issue above since /log/ does not exist in their repo.

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

Successfully merging a pull request may close this issue.

1 participant