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

bump deps #69

Merged
merged 10 commits into from
Apr 15, 2020
Merged

bump deps #69

merged 10 commits into from
Apr 15, 2020

Conversation

InoMurko
Copy link
Member

No description provided.

@InoMurko InoMurko requested a review from ayrat555 April 15, 2020 08:58
@@ -7,6 +7,7 @@
excluded: []
},
checks: [
{Credo.Check.Readability.ParenthesesOnZeroArityDefs, [parens: true]},
Copy link
Member

Choose a reason for hiding this comment

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

Why do we need this? It's a common approach to skip this

Copy link
Member Author

Choose a reason for hiding this comment

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

Credo enforces either we use ParenthesesOnZeroArity or we don't. Since using them required less changes to the codebase, I went and set parens to true.

Copy link
Member Author

Choose a reason for hiding this comment

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

if I comment this out I get

┃ [R] ↘ Do not use parentheses when defining a function which has no arguments.
┃       lib/ethereumex/config.ex:5 #(Ethereumex.Config.setup_children)
┃ [R] ↘ Do not use parentheses when defining a function which has no arguments.
┃       lib/ethereumex/counter.ex:8 #(Ethereumex.Counter.setup)
┃ [R] ↘ Do not use parentheses when defining a function which has no arguments.
┃       lib/ethereumex/config.ex:87 #(Ethereumex.Config.ipc_request_timeout)
┃ [R] ↘ Do not use parentheses when defining a function which has no arguments.
┃       lib/ethereumex/config.ex:82 #(Ethereumex.Config.ipc_max_worker_overflow)
┃ [R] ↘ Do not use parentheses when defining a function which has no arguments.
┃       lib/ethereumex/config.ex:77 #(Ethereumex.Config.ipc_worker_size)
┃ [R] ↘ Do not use parentheses when defining a function which has no arguments.
┃       lib/ethereumex/config.ex:62 #(Ethereumex.Config.ipc_path)
┃ [R] ↘ Do not use parentheses when defining a function which has no arguments.
┃       lib/ethereumex/config.ex:57 #(Ethereumex.Config.client_type)
┃ [R] ↘ Do not use parentheses when defining a function which has no arguments.
┃       lib/ethereumex/config.ex:52 #(Ethereumex.Config.http_options)
┃ [R] ↘ Do not use parentheses when defining a function which has no arguments.
┃       lib/ethereumex/config.ex:37 #(Ethereumex.Config.rpc_url)
┃ [R] ↘ Do not use parentheses when defining a function which has no arguments.
┃       lib/ethereumex/config.ex:27 #(Ethereumex.Config.poolboy_config)

Copy link
Member

Choose a reason for hiding this comment

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

Why do we need parentheses?

Copy link
Member Author

Choose a reason for hiding this comment

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

  1. It was a matter of choice between fixing 5 issues or 10 :) haha

  2. I personally prefer parentheses because functions look weird without it and no such thing exists in erlang. And to keep the consistent look between functions. :)

Copy link
Member

Choose a reason for hiding this comment

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

It's more conventional to skip parentheses so let's revet these changes
https://github.com/phoenixframework/phoenix/blob/master/lib/phoenix.ex

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Ok. Please bump version, add a changelog and let's merge this

.gitignore Outdated Show resolved Hide resolved
lib/ethereumex.ex Show resolved Hide resolved
lib/ethereumex/http_client.ex Show resolved Hide resolved
@InoMurko InoMurko requested a review from ayrat555 April 15, 2020 09:37
mix.exs Outdated Show resolved Hide resolved
mix.exs Outdated
{:jason, "~> 1.2"},
{:credo, "~> 1.3", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.21", only: :dev, runtime: false},
{:dialyxir, "~> 1.0.0", only: [:dev, :test], runtime: false},
Copy link
Member

Choose a reason for hiding this comment

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

1.0?

@ayrat555
Copy link
Member

@InoMurko squash commits please and we can merge it

@InoMurko InoMurko merged commit 1645cfe into master Apr 15, 2020
@InoMurko InoMurko deleted the inomurko/update_deps branch April 15, 2020 12:04
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.

2 participants