Skip to content

Handle trailing/leading method calls and syntax #76

@schneems

Description

@schneems

From #64 the algorithm doesn't work well unless a chunk of code fits logically into the concept of a "line". This assumption fails when we have trailing slashes (mitigated in #28) as well as leading/trailing method calls.

User
  .where(name: "schneems")

The other known leading/trailing syntax is boolean operators:

irb(main):017:0* 1 == 1 &&
irb(main):018:0* 2 == 2 ||
irb(main):019:0> 3 == 3
=> true

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