Skip to content

Indentation of pipe operator is broken #401

Open
@ckruse

Description

@ckruse

Indentation of the pipe operator is broken when the last line is indented. This code

def list_lines(pids) do
  from(line in Line,
    where: line.project_id in (^pids))
    |> Repo.all
    |> Repo.preload(:project)
end

should be indented as follows:

def list_lines(pids) do
  from(line in Line,
    where: line.project_id in (^pids))
  |> Repo.all
  |> Repo.preload(:project)
end

This works when the previous line is not indented:

def list_lines(pids) do
  from(
    line in Line,
    where: line.project_id in (^pids)
  )
  |> Repo.all
  |> Repo.preload(:project)
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions