{"action":"opened","issue":{"url":"https://api.github.com/repos/rubocop-hq/rubocop/issues/5975","repository_url":"https://api.github.com/repos/rubocop-hq/rubocop","labels_url":"https://api.github.com/repos/rubocop-hq/rubocop/issues/5975/labels{/name}","comments_url":"https://api.github.com/repos/rubocop-hq/rubocop/issues/5975/comments","events_url":"https://api.github.com/repos/rubocop-hq/rubocop/issues/5975/events","html_url":"https://github.com/rubocop-hq/rubocop/issues/5975","id":330851936,"node_id":"MDU6SXNzdWUzMzA4NTE5MzY=","number":5975,"title":"Layout/ClosingParenthesisIndentation is incorrect in 0.57.1 even on basic case","user":{"login":"jeremywadsack","id":241324,"node_id":"MDQ6VXNlcjI0MTMyNA==","avatar_url":"https://avatars2.githubusercontent.com/u/241324?v=4","gravatar_id":"","url":"https://api.github.com/users/jeremywadsack","html_url":"https://github.com/jeremywadsack","followers_url":"https://api.github.com/users/jeremywadsack/followers","following_url":"https://api.github.com/users/jeremywadsack/following{/other_user}","gists_url":"https://api.github.com/users/jeremywadsack/gists{/gist_id}","starred_url":"https://api.github.com/users/jeremywadsack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeremywadsack/subscriptions","organizations_url":"https://api.github.com/users/jeremywadsack/orgs","repos_url":"https://api.github.com/users/jeremywadsack/repos","events_url":"https://api.github.com/users/jeremywadsack/events{/privacy}","received_events_url":"https://api.github.com/users/jeremywadsack/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-09T04:28:44Z","updated_at":"2018-06-09T04:28:44Z","closed_at":null,"author_association":"NONE","body":"I'm not sure how this doesn't fail [in the specs](https://github.com/rubocop-hq/rubocop/blob/68609e6bcd53e82043c404d6c1e4fe1e82457b63/spec/rubocop/cop/layout/closing_parenthesis_indentation_spec.rb#L31) but with 0.57.1, the basic \"good\" case for `Layout/ClosingParenthesisIndentation` raises an error.\r\n\r\nThis looks like it's related to changed for Issue #4136 (I see no related PR). Likely something in 68609e6 which appears to be the (large) commit related to that effort.\r\n--------\r\n\r\n## Expected behavior\r\n\r\nGiven the following file:\r\n\r\n```\r\n# frozen_string_literal: true\r\n\r\nsome_method(\r\n    a,\r\n    b\r\n)\r\n```\r\n\r\nI would expect rubocop to accept that code. It's _exactly_ what is [described in the documentation example](https://github.com/rubocop-hq/rubocop/commit/68609e6bcd53e82043c404d6c1e4fe1e82457b63#diff-84278b38a8a718e15ad796e211b6c0c2R39).\r\n\r\n## Actual behavior\r\n\r\nRubocop raises an error:\r\n\r\n```\r\n$ rubocop close-paren.rb \r\nInspecting 1 file\r\nC\r\n\r\nOffenses:\r\n\r\nclose-paren.rb:6:1: C: Layout/ClosingParenthesisIndentation: Indent ) to column 2 (not 0)\r\n)\r\n^\r\n\r\n1 file inspected, 1 offense detected\r\n```\r\n\r\n## Steps to reproduce the problem\r\n\r\nSee above.\r\n\r\n## RuboCop version\r\n\r\n```\r\n$ rubocop -v\r\n0.57.1\r\n```"}}
{"actor":{"display_login":"jeremywadsack"}}