Skip to content

Decrease the max line length limit #3740

Closed

Description

@joshaber

As per #3032 (comment), we can probably cut our max line length limit down quite a bit. It's currently at 500,000. We could try 100,000 or even 50k.

See

/**
* The longest line length we should try to display. If a diff has a line longer
* than this, we probably shouldn't attempt it.
*/
const MaxLineLength = 500000

Activity

  1. added
    help wanted
    good first issue
    on Jan 8, 2018
  2. iAmWillShepherd commented on Jan 8, 2018

    @iAmWillShepherd
    Contributor

    I'd say 50k seems reasonable

  3. shiftkey commented on Jan 8, 2018

    @shiftkey
    Member

  4. joshaber commented on Jan 8, 2018

    @joshaber
    ContributorAuthor

    The comment that spurred this suggested even 10k, which might be reasonable. What diff is gonna be readable with 10k character lines?

  5. iAmWillShepherd commented on Jan 8, 2018

    @iAmWillShepherd
    Contributor

    I'm in favor of that too, you could even cut that 10k in half.

  6. self-assigned this
    on Jan 11, 2018
  7. removed their assignment
    on Feb 10, 2018
  8. JQuinnie commented on Mar 5, 2018

    @JQuinnie
    Contributor

    Hi All, I would like to work on this, if still available.

  9. iAmWillShepherd commented on Mar 5, 2018

    @iAmWillShepherd
    Contributor

    @JQuinnie, sure you can take this issue 😄 . When you open your PR please include Fixes #3740 at the beginning of the body.

    Also, we thought that 5k might be a good limit to start with. To help you out, here are some of the scenarios I thought of testing through. Hope it helps!

    1. New file with 1 line that contains at least 5k characters
    2. Existing file with a new line added with at least 5K characters
    3. Existing file changing an existing line so that it has at least 5k character

    Additionally, the variable MaxLineLength is confusing, would you mind renaming to MaxCharactersPerLine?

  10. pandeer2 commented on Mar 18, 2018

    @pandeer2
  11. iAmWillShepherd commented on Apr 30, 2018

    @iAmWillShepherd
    Contributor

    Hi @JQuinnie , it looks like you've gotten a little busy lately as there haven't been activity on this in the last month. Is this still something you're interesting in pursuing? Additionally, did we miss any outstanding or blocking questions?

    If not, we thought we'd make this issue available to the community again.

  12. JQuinnie commented on May 2, 2018

    @JQuinnie
    Contributor

    Hi @iAmWillShepherd , many apologies as you are right... I have been preoccupied with some personal tasks... I have not issues if you want to make this available to others. If no one picks it up at a later time, I take another go.

    Thanks for your assistance!

  13. simonfl3tcher commented on May 20, 2018

    @simonfl3tcher
    Contributor

    @iAmWillShepherd I would be happy to pick this up for @JQuinnie I can probably take a look this week?

  14. iAmWillShepherd commented on May 25, 2018

    @iAmWillShepherd
    Contributor

    @mrsimonfletcher that sounds great! I'll go ahead and move this issue to In Progress, so others don't try to work on it at the same time as you.

  15. locked as resolved and limited conversation to collaborators on Jul 27, 2018
  16. unlocked this conversation on Sep 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issuehelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions