Skip to content

Situation where code formatting is not idempotent and creates really long comment #149

@devonpmack

Description

@devonpmack

Try formatting this code:

def foo(bar)
  Foo
    .where(
      id: bar
    )
    # The second condition helps to skip the newly create runtime stated as "initialized"
    # The first condition helps to skip the soft deleted runtime marked as "remote_deleted"
    #   that hasn't been appeared in ProdRegistry
    .where(<<-SQL)
        (foo)
      SQL
end
def foo(bar)
  Foo.where(
    id: bar
  )# The second condition helps to skip the newly create runtime stated as "initialized"
  # The first condition helps to skip the soft deleted runtime marked as "remote_deleted"
  #   that hasn't been appeared in ProdRegistry
  .
    where(<<-SQL)
        (foo)
      SQL
end
def foo(bar)
  Foo.where(
    id: bar
  )# The first condition helps to skip the soft deleted runtime marked as "remote_deleted" # The second condition helps to skip the newly create runtime stated as "initialized"
  #   that hasn't been appeared in ProdRegistry
  .
    where(<<-SQL)
        (foo)
      SQL
end
def foo(bar)
  Foo.where(id: bar)#   that hasn't been appeared in ProdRegistry # The first condition helps to skip the soft deleted runtime marked as "remote_deleted" # The second condition helps to skip the newly create runtime stated as "initialized"
  .
    where(<<-SQL)
        (foo)
      SQL
end
def foo(bar)
  Foo.where(id: bar) #   that hasn't been appeared in ProdRegistry # The first condition helps to skip the soft deleted runtime marked as "remote_deleted" # The second condition helps to skip the newly create runtime stated as "initialized"
    .where(<<-SQL)
        (foo)
      SQL
end

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