{"action":"created","issue":{"url":"https://api.github.com/repos/bbatsov/rubocop/issues/2410","labels_url":"https://api.github.com/repos/bbatsov/rubocop/issues/2410/labels{/name}","comments_url":"https://api.github.com/repos/bbatsov/rubocop/issues/2410/comments","events_url":"https://api.github.com/repos/bbatsov/rubocop/issues/2410/events","html_url":"https://github.com/bbatsov/rubocop/pull/2410","id":115923433,"number":2410,"title":"Add Style/IndentAssignment Cop","user":{"login":"panthomakos","id":186424,"avatar_url":"https://avatars.githubusercontent.com/u/186424?v=3","gravatar_id":"","url":"https://api.github.com/users/panthomakos","html_url":"https://github.com/panthomakos","followers_url":"https://api.github.com/users/panthomakos/followers","following_url":"https://api.github.com/users/panthomakos/following{/other_user}","gists_url":"https://api.github.com/users/panthomakos/gists{/gist_id}","starred_url":"https://api.github.com/users/panthomakos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/panthomakos/subscriptions","organizations_url":"https://api.github.com/users/panthomakos/orgs","repos_url":"https://api.github.com/users/panthomakos/repos","events_url":"https://api.github.com/users/panthomakos/events{/privacy}","received_events_url":"https://api.github.com/users/panthomakos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-09T17:17:49Z","updated_at":"2015-11-11T20:58:48Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/bbatsov/rubocop/pulls/2410","html_url":"https://github.com/bbatsov/rubocop/pull/2410","diff_url":"https://github.com/bbatsov/rubocop/pull/2410.diff","patch_url":"https://github.com/bbatsov/rubocop/pull/2410.patch"},"body":"This is a prequel to #2361. It is enabled by default and properly fixes the auto-correct output that `MultilineAssignmentLayout` produces.\r\n\r\nWhen assignments span multiple lines, this cop enforces proper indentation on the right-hand-side of the expression. It only corrects the first line, as the remaining lines can be corrected by other cops such as `Style/IndentationConsistency`.\r\n\r\n    # bad\r\n    value =\r\n    if foo\r\n      'bar'\r\n    else\r\n      'biz'\r\n    end\r\n\r\n    # good\r\n    value =\r\n      if foo # corrected/accepted\r\n      'bar'\r\n    else\r\n      'biz'\r\n    end\r\n\r\nI have also added a fix to `Astrolabe::Node#asgn_method_call?`. It used to consider `!=` method calls as assignments - which they are not. There were also no tests for this method so I've added them."},"comment":{"url":"https://api.github.com/repos/bbatsov/rubocop/issues/comments/155907792","html_url":"https://github.com/bbatsov/rubocop/pull/2410#issuecomment-155907792","issue_url":"https://api.github.com/repos/bbatsov/rubocop/issues/2410","id":155907792,"user":{"login":"panthomakos","id":186424,"avatar_url":"https://avatars.githubusercontent.com/u/186424?v=3","gravatar_id":"","url":"https://api.github.com/users/panthomakos","html_url":"https://github.com/panthomakos","followers_url":"https://api.github.com/users/panthomakos/followers","following_url":"https://api.github.com/users/panthomakos/following{/other_user}","gists_url":"https://api.github.com/users/panthomakos/gists{/gist_id}","starred_url":"https://api.github.com/users/panthomakos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/panthomakos/subscriptions","organizations_url":"https://api.github.com/users/panthomakos/orgs","repos_url":"https://api.github.com/users/panthomakos/repos","events_url":"https://api.github.com/users/panthomakos/events{/privacy}","received_events_url":"https://api.github.com/users/panthomakos/received_events","type":"User","site_admin":false},"created_at":"2015-11-11T20:58:48Z","updated_at":"2015-11-11T20:58:48Z","body":"@jonas054 rebased on top of `master`"}}