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

#359 - No Hanging Indentation #725

Open
wants to merge 1 commit into
base: master
from
Open

Conversation

@baweaver
Copy link

baweaver commented Aug 15, 2018

Based off of a very old issue that had a lot of interesting discussion:

#359

The idea here is that hanging indentation is incredibly hard to read while going down a page, and also incurs extra editing whenever more methods are added to a chain.

Based off of a very old issue that had a lot of interesting discussion:

#359

The idea here is that hanging indentation is incredibly hard to read while going down a page, and also incurs extra editing whenever more methods are added to a chain.

```ruby
# bad (hanging indent)
some_method.with.a_longer.chain(:parameter_1,

This comment has been minimized.

@bbatsov

bbatsov Aug 16, 2018

Collaborator

I think this needs to be made clear with respect to:

  1. no method chain - e.g. some_method(a,
  2. short method chain - frankly it seems to the example you deleted looks fine, as it's not really a long method chain.
@@ -643,6 +635,40 @@ Translations of the guide are available in the following languages:
end
```

* <a name="no-hanging-indent"></a>

This comment has been minimized.

@bbatsov

bbatsov Aug 16, 2018

Collaborator

Maybe no-hanging-param-indent or something like this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.