Skip to content

Deep block-level indent fails following @spec #353

@jbodah

Description

@jbodah

Actual

defmodule MyModule do # 30 blank lines @spec something :: something def my_fun do end end

The problem has to do with how we handle defaulting. Do we follow the prev non-blank line or do we try and trace it up (e.g. following nesting due to binary operator chaining/assignment/pipelines)? Right now there is a hack to handle end properly, but nothing for any module attributes. Still - I think we should handle this differently than whitelisting edge cases until tests pass

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions