rubocop
https://github.com/bbatsov/rubocop
Ruby
A Ruby static code analyzer, based on the community Ruby style guide.
RuboCop::Cop::MultilineExpressionIndentation#left_hand_side
In a chain of method calls, we regard the top send node as the base
for indentation of all lines following the first. For example:
a.
b c { block }. <-- b is indented relative to a
d <-- d is indented relative to aEdit
git clone [email protected]:bbatsov/rubocop.git
cd rubocop
open lib/rubocop/cop/mixin/multiline_expression_indentation.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-RuboCop--Cop--MultilineExpressionIndentation-left_hand_side-for-pr
# Commit to gitgit add lib/rubocop/cop/mixin/multiline_expression_indentation.rbgit commit -m "better docs for RuboCop::Cop::MultilineExpressionIndentation#left_hand_side"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-RuboCop--Cop--MultilineExpressionIndentation-left_hand_side-for-pr
hub pull-request
# Celebrate!