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

Allow to reformat flow collections #8

Open
perlpunk opened this issue Oct 6, 2020 · 0 comments
Open

Allow to reformat flow collections #8

perlpunk opened this issue Oct 6, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@perlpunk
Copy link
Owner

perlpunk commented Oct 6, 2020

There are a number of styles to consider:

# everything on one line, until line length exceeded
compact: [aaaaaaaaa, bbbbbbbb, [cccccccccc,
      dddddddddd, eeeeeee]]

# new line when collection is started
medium: [
    aaaaaaaaa, bbbbbbbb, [
      cccccccccc, dddddddddd, eeeeeee
    ]
  ]
medium2: [ aaaaaaaaa, bbbbbbbb,
    [ cccccccccc, dddddddddd, eeeeeee ] ]

# every event on its own line
verbose: [
    aaaaaaaaa,
    bbbbbbbb,
    [
      cccccccccc,
      dddddddddd,
      eeeeeee
    ]
  ]

There might also be styles with slight variations.
Also the number of spaces before/after []{}, should be configurable.

@perlpunk perlpunk added the enhancement New feature or request label Oct 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant