-
Notifications
You must be signed in to change notification settings - Fork 601
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
[in-review] Code optimisations via adding the credo #285
[in-review] Code optimisations via adding the credo #285
Conversation
- Run mix credo --all to identify possible code optimizations - Resolve most of the errors generated by credo such as: - Numbers larger than 9999 should be written with underscores: 58_127 - Modules should have a @moduledoc tag - Comparison will always return true
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This all seems pretty reasonable to me, and I don't have any strong feelings against Credo. There is one place that I think is a mistake (see requested change).
test/blanks_test.exs
Outdated
@@ -19,7 +19,7 @@ defmodule BlanksTest do | |||
end | |||
|
|||
test "multiple arguments" do | |||
ast = quote do: assert(___ == ___) | |||
ast = quote do: assert true == false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ast = quote do: assert true == false | |
ast = quote do: assert ___ == ___ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is done.
cc: @iamvery
I added configuration for credo to run in CI using |
This PR involves the following changes: