Skip to content

Default to "Align operands of pipe operator" setting does not produce expected results. #1787

Open
@MalmarPadecain

Description

@MalmarPadecain

Describe the bug
The default to "Align operands of pipe operator" setting does not format @type the way this style guide recomends and mix format creates.
Unchecking this option results in the expected behaviour.

To Reproduce
Steps to reproduce the behavior:

  1. Create a multiline typespec
  2. Run formater
@type a ::
        :a
        | :b
        | :c
          | :d
          | :e
            | :f 

or

@type a :: :a |
           :b |
           :c |
           :d |
           :e |
           :f

Expected behavior

@type a ::
        :a
        | :b
        | :c
        | :d
        | :e
        | :f 

Desktop:

  • OS: Debian
  • Version 10

Erlang:

  • Version 23

Elixir:

  • Version 1.10.3

Plugin:

  • Version 11.7.0

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions