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

Avoid special indentation for multiline blocks in parens #891

Open
nikita-volkov opened this issue May 31, 2022 · 0 comments
Open

Avoid special indentation for multiline blocks in parens #891

nikita-volkov opened this issue May 31, 2022 · 0 comments
Labels
style Nitpicking and things related to purely visual aspect for formatting.

Comments

@nikita-volkov
Copy link

Here's a code sample showcasing how the formatting works currently:

(stringSchema 1 100)
( requiredSchemaField
    "title"
    (stringSchema 1 100)
)

Here's what I suggest to change it to:

(stringSchema 1 100)
(requiredSchemaField
  "title"
  (stringSchema 1 100)
)

Why? Because it makes formatting more consistent. Makes parensed blocks look similar regardless of the context. The indentation of the first term does not depend on the positioning of the ones following, so it's simpler. It is also currently about the only case where the step of the indentation is 4 instead of 2.

@mrkkrp mrkkrp added the style Nitpicking and things related to purely visual aspect for formatting. label Jun 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
style Nitpicking and things related to purely visual aspect for formatting.
Projects
None yet
Development

No branches or pull requests

2 participants