{"action":"created","issue":{"url":"https://api.github.com/repos/bbatsov/rubocop/issues/5224","repository_url":"https://api.github.com/repos/bbatsov/rubocop","labels_url":"https://api.github.com/repos/bbatsov/rubocop/issues/5224/labels{/name}","comments_url":"https://api.github.com/repos/bbatsov/rubocop/issues/5224/comments","events_url":"https://api.github.com/repos/bbatsov/rubocop/issues/5224/events","html_url":"https://github.com/bbatsov/rubocop/issues/5224","id":281421372,"number":5224,"title":"False positive for the Layout/EmptyLinesAroundArguments cop","user":{"login":"kyrylo","id":1079123,"avatar_url":"https://avatars2.githubusercontent.com/u/1079123?v=4","gravatar_id":"","url":"https://api.github.com/users/kyrylo","html_url":"https://github.com/kyrylo","followers_url":"https://api.github.com/users/kyrylo/followers","following_url":"https://api.github.com/users/kyrylo/following{/other_user}","gists_url":"https://api.github.com/users/kyrylo/gists{/gist_id}","starred_url":"https://api.github.com/users/kyrylo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyrylo/subscriptions","organizations_url":"https://api.github.com/users/kyrylo/orgs","repos_url":"https://api.github.com/users/kyrylo/repos","events_url":"https://api.github.com/users/kyrylo/events{/privacy}","received_events_url":"https://api.github.com/users/kyrylo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-12-12T15:17:42Z","updated_at":"2018-02-13T17:39:39Z","closed_at":"2017-12-15T17:40:19Z","author_association":"NONE","body":"Use this file and run latest rubocop against it:\r\nhttps://github.com/airbrake/airbrake/blob/v7.1.0/lib/airbrake/capistrano/capistrano2.rb\r\n\r\n--------\r\n\r\n## Expected behavior\r\n\r\nNo offence of the `Layout/EmptyLinesAroundArguments` cop\r\n\r\n## Actual behavior\r\n\r\n```\r\nlib/airbrake/capistrano/capistrano2.rb:4:1: C: Layout/EmptyLinesAroundArguments: Empty line detected around arguments.\r\n    # rubocop:disable Metrics/AbcSize\r\n^\r\nlib/airbrake/capistrano/capistrano2.rb:7:1: C: Layout/EmptyLinesAroundArguments: Empty line detected around arguments.\r\n        after 'deploy', 'airbrake:deploy'\r\n^\r\n```\r\n\r\nThe offending lines are actually L18 & L21. I believe it's wrong to force me to format my strings how I want.\r\n\r\n## RuboCop version\r\n\r\n```\r\n$ rubocop -V\r\n0.52.0 (using Parser 2.4.0.2, running on ruby 2.4.2 x86_64-darwin16)\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/bbatsov/rubocop/issues/comments/365344364","html_url":"https://github.com/bbatsov/rubocop/issues/5224#issuecomment-365344364","issue_url":"https://api.github.com/repos/bbatsov/rubocop/issues/5224","id":365344364,"user":{"login":"revolter","id":5748627,"avatar_url":"https://avatars0.githubusercontent.com/u/5748627?v=4","gravatar_id":"","url":"https://api.github.com/users/revolter","html_url":"https://github.com/revolter","followers_url":"https://api.github.com/users/revolter/followers","following_url":"https://api.github.com/users/revolter/following{/other_user}","gists_url":"https://api.github.com/users/revolter/gists{/gist_id}","starred_url":"https://api.github.com/users/revolter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/revolter/subscriptions","organizations_url":"https://api.github.com/users/revolter/orgs","repos_url":"https://api.github.com/users/revolter/repos","events_url":"https://api.github.com/users/revolter/events{/privacy}","received_events_url":"https://api.github.com/users/revolter/received_events","type":"User","site_admin":false},"created_at":"2018-02-13T17:39:39Z","updated_at":"2018-02-13T17:39:39Z","author_association":"NONE","body":"I think I'm getting a false positive too for:\r\n\r\n```ruby\r\nsh('script.py', error_callback: lambda { |result|\r\n    error = JSON.parse(result, symbolize_names: true)\r\n    error_text = error[:error]\r\n\r\n    UI.user_error!(\"Error: #{error_text}\")\r\n})\r\n```\r\n\r\nat line 4 using RuboCop `0.52.1`."}}
{"actor":{"display_login":"revolter"}}