Skip to content

Parentheses are not added to function calls #48

@jonleighton

Description

@jonleighton

This function call doesn't get formatted:

<%= foo "bar" %>

I think I would ideally expect the formatting to happen exactly as mix format does, which would mean this:

<%= foo("bar") %>

Ideally it would also obey formatting configuration in .formatter.exs.

Perhaps it's not such a good idea for templates though. There are probably a lot of template helpers that feel cleaner without the parens. So the current behaviour doesn't hugely offend me, but I thought I'd open an issue for discussion about what the desired behaviour should be here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions