{"action":"created","issue":{"url":"https://api.github.com/repos/bbatsov/rubocop/issues/1638","labels_url":"https://api.github.com/repos/bbatsov/rubocop/issues/1638/labels{/name}","comments_url":"https://api.github.com/repos/bbatsov/rubocop/issues/1638/comments","events_url":"https://api.github.com/repos/bbatsov/rubocop/issues/1638/events","html_url":"https://github.com/bbatsov/rubocop/issues/1638","id":56728946,"number":1638,"title":"FirstParameterIndentation in interpolated string works strangely","user":{"login":"bquorning","id":22333,"avatar_url":"https://avatars.githubusercontent.com/u/22333?v=3","gravatar_id":"","url":"https://api.github.com/users/bquorning","html_url":"https://github.com/bquorning","followers_url":"https://api.github.com/users/bquorning/followers","following_url":"https://api.github.com/users/bquorning/following{/other_user}","gists_url":"https://api.github.com/users/bquorning/gists{/gist_id}","starred_url":"https://api.github.com/users/bquorning/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bquorning/subscriptions","organizations_url":"https://api.github.com/users/bquorning/orgs","repos_url":"https://api.github.com/users/bquorning/repos","events_url":"https://api.github.com/users/bquorning/events{/privacy}","received_events_url":"https://api.github.com/users/bquorning/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bbatsov/rubocop/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"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},"milestone":null,"comments":1,"created_at":"2015-02-05T21:00:32Z","updated_at":"2015-02-06T07:23:29Z","closed_at":null,"body":"```rb\r\nputs %(\r\n  <p>\r\n    #{Array(\r\n      42\r\n    )}\r\n  </p>\r\n)\r\n```\r\n\r\nRunning `bin/rubocop --only Style/FirstParameterIndentation` on the above code, I am told to properly indent the line containing `42`.\r\n\r\nThe strange thing here is that the recommended position seems to be 2 spaces more than *the position of `<p>`*. I would assume the indentation of the un-interpolated parts of the string would have no influence on the indentation recommendation of the interpolated parts.\r\n\r\nFrom my testing, it seems that this bug only presents itself when the interpolated string contains a method call with its argument(s) on a new line(s)."},"comment":{"url":"https://api.github.com/repos/bbatsov/rubocop/issues/comments/73196176","html_url":"https://github.com/bbatsov/rubocop/issues/1638#issuecomment-73196176","issue_url":"https://api.github.com/repos/bbatsov/rubocop/issues/1638","id":73196176,"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-02-06T07:23:29Z","updated_at":"2015-02-06T07:23:29Z","body":"It's the old regexp matching trap. `    #{Array(` is mistaken for a comment line. I'll have it fixed soon."}}