Skip to content

standardize sigil delimiters #195

@novaugust

Description

@novaugust

With a sigil like ~w, a codebase might use a variety of delimiters, for no reason other than the author's personal preferences.
Styler could enforce a standard for delimiters, ala our string delimiter choices.

For example:

defp style({:sigil_w, [{:delimiter, _} | meta], children}), do: {:sigil_w, [{:delimiter, "("} | meta], children}

This naive approach would break code like this though: ~w|)|, so the sigil should be evaluated for which delimiter would require the fewest escapes, and otherwise use the delimiters by preference

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions