-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
Extra indent requested with two opens on same line. #21
Comments
this behavior is intentional |
That's a shame. IMO, it's not correct and conflicts with what other tools do. eg. vim-puppet's indentation. It's not just a puppet thing, eg ruby and rubocop. Puppet code following the rules from this plugin. $a = [{
foo => bar,
}] Almost identical ruby code following same style. a = [{
foo: 'bar'
}]
|
I agree. When I wrote this plugin I had to choose how to indent for these cases:
This plugin does not assert that multiple brackets in a single line must also be closed in a single line, so the simpler code implementation was to increase or decrease indent for every bracket. I no longer write new code for this plugin, but I will reopen this issue and mark it as If someone wants to implement a fix for this issue, I will publish it as a major version bump, and the following indents should all be valid:
|
With the following
gives.
this seems wrong to me.
Maybe it should be rewritten as
but the first seems valid to me.
The text was updated successfully, but these errors were encountered: