-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Run the code formatter on Mix.Tasks.Compile.App #6663
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
Conversation
Keyword.get(opts, :app, true), | ||
Keyword.get(opts, :runtime, true), | ||
not Keyword.get(opts, :optional, false), | ||
app not in included_applications, | ||
do: app | ||
app not in included_applications, do: app |
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.
I'm not sure about location do
block on one line with condition
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.
Good catch. This is a bug. I will investigate!
Mix.raise "Application description (:description) is not a character list, got: #{inspect value}" | ||
Mix.raise( | ||
"Application description (:description) is not a character list, got: #{ | ||
inspect(value) |
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.
And I'm not sure about such splits of long lines with variables. How best to do in such cases?
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.
msg = "Application description (:description) is not a character list, got: #{inspect(value)}"
or if it still doesn't fit, break using <>
:
"Application description (:description) is not a character list, " <>
"got: #{inspect(value)}"
Thanks @Nitrino! For the cases where the interpolation broke apart, it is best to use the concatenation operators. Regarding the |
Hi @Nitrino! I have pushed a fix to master for your long comprehension. Please rebase on latest master, run |
bdd5975
to
8c43b96
Compare
8c43b96
to
a03aa0a
Compare
@josevalim, after rebasing from master with your fix and recompile, formatter still thinks that |
@Nitrino I have tried it locally and it worked. So I will merge it here and fix it locally but meanwhile please try this:
Thank you! ❤️ 💚 💙 💛 💜 |
@josevalim thanks, |
No description provided.