{"action":"created","issue":{"url":"https://api.github.com/repos/bbatsov/rubocop/issues/2139","labels_url":"https://api.github.com/repos/bbatsov/rubocop/issues/2139/labels{/name}","comments_url":"https://api.github.com/repos/bbatsov/rubocop/issues/2139/comments","events_url":"https://api.github.com/repos/bbatsov/rubocop/issues/2139/events","html_url":"https://github.com/bbatsov/rubocop/issues/2139","id":100487997,"number":2139,"title":"BracesAroundHashParameters: ignore for single indent on multiple lines","user":{"login":"ypresto","id":400558,"avatar_url":"https://avatars.githubusercontent.com/u/400558?v=3","gravatar_id":"","url":"https://api.github.com/users/ypresto","html_url":"https://github.com/ypresto","followers_url":"https://api.github.com/users/ypresto/followers","following_url":"https://api.github.com/users/ypresto/following{/other_user}","gists_url":"https://api.github.com/users/ypresto/gists{/gist_id}","starred_url":"https://api.github.com/users/ypresto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ypresto/subscriptions","organizations_url":"https://api.github.com/users/ypresto/orgs","repos_url":"https://api.github.com/users/ypresto/repos","events_url":"https://api.github.com/users/ypresto/events{/privacy}","received_events_url":"https://api.github.com/users/ypresto/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-12T07:52:58Z","updated_at":"2015-08-15T12:57:56Z","closed_at":null,"body":"As ruby-style-guide, single indent is allowed for parameters with parentheses:\r\n\r\n```ruby\r\n# good (normal indent)\r\ndef send_mail(source)\r\n  Mailer.deliver(\r\n    to: 'bob@example.com',\r\n    from: 'us@example.com',\r\n    subject: 'Important message',\r\n    body: source.text\r\n  )\r\nend\r\n```\r\n\r\nBut currently rubocop warns about below braces around hash:\r\n\r\n```ruby\r\ndesc 'Update API for something', {\r\n  notes: 'Something will be changed by calling this API.'\r\n}\r\n```\r\n\r\nHow about ignoring braces for hash spans more than one line?\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/bbatsov/rubocop/issues/comments/131368020","html_url":"https://github.com/bbatsov/rubocop/issues/2139#issuecomment-131368020","issue_url":"https://api.github.com/repos/bbatsov/rubocop/issues/2139","id":131368020,"user":{"login":"jonas054","id":336720,"avatar_url":"https://avatars.githubusercontent.com/u/336720?v=3","gravatar_id":"","url":"https://api.github.com/users/jonas054","html_url":"https://github.com/jonas054","followers_url":"https://api.github.com/users/jonas054/followers","following_url":"https://api.github.com/users/jonas054/following{/other_user}","gists_url":"https://api.github.com/users/jonas054/gists{/gist_id}","starred_url":"https://api.github.com/users/jonas054/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonas054/subscriptions","organizations_url":"https://api.github.com/users/jonas054/orgs","repos_url":"https://api.github.com/users/jonas054/repos","events_url":"https://api.github.com/users/jonas054/events{/privacy}","received_events_url":"https://api.github.com/users/jonas054/received_events","type":"User","site_admin":false},"created_at":"2015-08-15T12:57:56Z","updated_at":"2015-08-15T12:57:56Z","body":"I don't think so. Multi-line hashes are not that special. They're part of this cop's duties, so I think it would be a degradation in functionality to allow the braces."}}