Skip to content

Handle large files better #20

@schneems

Description

@schneems

Right now when finding syntax errors in files with hundreds/thousands of lines, the output is simplified but can still be overwhelming.

My proposal is that we simplify the file so that only the "invalid block" and the indentation around it renders. Example:

class Dog
  module Talk
    def speak
    end

    defwoof
    end

    def bark
    end
  end
end

class Cat
  def meow
  end
end

Could be simplified to

class Dog
  module Talk
    defwoof
    end
  end
end

So that it has the surrounding context is present for visual verification, but the outcome is much smaller (hopefully)

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