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

[#2] Implemented elvis for console usage #9

Merged
merged 15 commits into from
Jun 26, 2014

Conversation

jfacorro
Copy link
Contributor

Also added tests and a description in the README on how to configure and use elvis form the Erlang shell.

%%= ok
```

`Config` which should have a valid format. Since this is a project under development what is a valid format is still a
Copy link
Member

Choose a reason for hiding this comment

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

This paragraph doesn't sound right to me, syntactically speaking.

{ok, binary()} | not_found.
src(_Config, FilePath) ->
case file:read_file(FilePath) of
{error, enoent} -> not_found;
Copy link
Member

Choose a reason for hiding this comment

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

If you're returning something, instead of throwing an exception (which is what I would've done :P). It should be enoent so that it's consistent with similar errors from Erlang/OTP

…uxiliary test functions to a test module. Replaced not_found for {error, enoent}.
elbrujohalcon added a commit that referenced this pull request Jun 26, 2014
[#2] Implemented elvis for console usage
@elbrujohalcon elbrujohalcon merged commit 390375a into master Jun 26, 2014
@jfacorro jfacorro deleted the jfacorro.2.console.tool branch June 26, 2014 16:48
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