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

Process command-line files according to config settings #568

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jamesaimonetti
Copy link

Previously, command-line files were forced to be processed
sequentially, regardless of any parallel setting.

Now the files are converted to elvis_files and included in the config
for regular processing.

Addresses #567

Previously, command-line files were forced to be processed
sequentially, regardless of any `parallel` setting.

Now the files are converted to elvis_files and included in the config
for regular processing.
@jamesaimonetti
Copy link
Author

@elbrujohalcon first stab. Lifted the bits in file_to_path from elvis_core;rock_this/2; might be worth putting in elvis_file as a generic elvis_file:from_filename/1 type function?

Copy link
Member

@elbrujohalcon elbrujohalcon left a comment

Choose a reason for hiding this comment

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

Your approach is fine with me. But if you want to create elvis_file:from_filename/1, that's even better… of course.

ok -> ok
end;
_ ->
lists:map(fun(F) -> rock_one_song(F, Config) end, Files)
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't we remove rock_one_song/2 entirely, too?

Copy link
Author

Choose a reason for hiding this comment

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

Yes, thought i had! Pushed commit with that removed.

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 this pull request may close these issues.

None yet

2 participants