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

Add --keep-rocking switch #435

Merged
merged 2 commits into from
Mar 2, 2017
Merged

Add --keep-rocking switch #435

merged 2 commits into from
Mar 2, 2017

Conversation

fenek
Copy link
Contributor

@fenek fenek commented Feb 22, 2017

This switch will force Elvis to keep rocking even when it encounters an error. It applies to a case when a list of files to rock is provided. Default behaviour causes the script to stop on first faulty module.

It's useful for rocking group of modules selected with regexp. First of all, it allows to learn an overview of errors in all modules. Secondly, now it's possible to ignore some errors that are tricky to resolve (like god modules) and continue to remaining mods.

src/elvis.erl Outdated
[
{help, $h, "help", undefined, "Show this help information."},
{config, $c, "config", string, Commands},
{commands, undefined, "commands", undefined, "Show available commands."},
{output_format, undefined, "output-format", string, OutputFormat},
{version, $v, "version", undefined, "Specify the elvis current version."},
{code_path, $p, "code-path", string, "Add the directory in the code path."}
{code_path, $p, "code-path", string, "Add the directory in the code path."},
Copy link

Choose a reason for hiding this comment

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

Line 67 is too long: {code_path, $p, "code-path", string, "Add the directory in the code path."},.

@elbrujohalcon
Copy link
Member

@fenek would you mind satisfying our rocking overlord by reducing the length of that line?

@fenek
Copy link
Contributor Author

fenek commented Mar 2, 2017

Not my code! :D Just kidding. Sure, not a problem. :)

@fenek fenek changed the title Add --keep-going switch Add --keep-rocking switch Mar 2, 2017
@elbrujohalcon elbrujohalcon merged commit 8275126 into inaka:master Mar 2, 2017
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.

3 participants