Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

util: change inspect compact default #27109

Closed

Commits on Apr 5, 2019

  1. util: improve inspect edge cases

    This makes sure `compact` number mode causes small proxies and map
    entries to be printed on a single line.
    
    It also fixed the line break calculation for `compact` mode when not
    set to `true`. It now also adds the additional whitespace, comma and
    quotes to the formula to prevent exceeding the `breakLength`.
    BridgeAR committed Apr 5, 2019
    Configuration menu
    Copy the full SHA
    2a69b0f View commit details
    Browse the repository at this point in the history
  2. util: change inspect compact and breakLength default

    This changes the `compact` default from `true` to `3`. That mode
    changes arrays to be grouped together, it alignes multiple small
    entries on a single line in similar to `compact` true but only for
    the most inner three depth levels and the closing brackets are
    always on the same indentation as the openeing of the object instead
    of at the same line as another property.
    
    Big strings will be naturally broken into multiple lines instead of
    having one huge line that is not well readable.
    
    The output size mainly stays the same that way while it will be
    smaller in case of big arrays.
    
    Increasing the `breakLength` to 80 adjusts for most terminals that
    support at least 80 characters in a single line and improves the
    general output that way. A lot of calculations use the `breakLength`
    to determine the concrete behavior.
    BridgeAR committed Apr 5, 2019
    Configuration menu
    Copy the full SHA
    3b0b59b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    fe71ce1 View commit details
    Browse the repository at this point in the history

Commits on Apr 6, 2019

  1. Configuration menu
    Copy the full SHA
    be24b74 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6f971cc View commit details
    Browse the repository at this point in the history

Commits on Apr 7, 2019

  1. Configuration menu
    Copy the full SHA
    2bc1293 View commit details
    Browse the repository at this point in the history