{"action":"created","issue":{"url":"https://api.github.com/repos/bbatsov/rubocop/issues/2506","labels_url":"https://api.github.com/repos/bbatsov/rubocop/issues/2506/labels{/name}","comments_url":"https://api.github.com/repos/bbatsov/rubocop/issues/2506/comments","events_url":"https://api.github.com/repos/bbatsov/rubocop/issues/2506/events","html_url":"https://github.com/bbatsov/rubocop/issues/2506","id":122353041,"number":2506,"title":"False positive for Lint/FormatParameterMismatch when options param is a local variable","user":{"login":"backus","id":2085622,"avatar_url":"https://avatars.githubusercontent.com/u/2085622?v=3","gravatar_id":"","url":"https://api.github.com/users/backus","html_url":"https://github.com/backus","followers_url":"https://api.github.com/users/backus/followers","following_url":"https://api.github.com/users/backus/following{/other_user}","gists_url":"https://api.github.com/users/backus/gists{/gist_id}","starred_url":"https://api.github.com/users/backus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/backus/subscriptions","organizations_url":"https://api.github.com/users/backus/orgs","repos_url":"https://api.github.com/users/backus/repos","events_url":"https://api.github.com/users/backus/events{/privacy}","received_events_url":"https://api.github.com/users/backus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-15T19:55:15Z","updated_at":"2015-12-15T21:57:51Z","closed_at":null,"body":"Example\r\n\r\n```ruby\r\nparams = { y: '2015', m: '01', d: '01' }\r\n\r\nputs format('%{y}-%{m}-%{d}', params)\r\n```\r\n\r\nRubocop output\r\n\r\n```sh\r\n$ cat ex.rb\r\nparams = { y: '2015', m: '01', d: '01' }\r\n\r\nputs format('%{y}-%{m}-%{d}', params)\r\n\r\n$ ruby ex.rb\r\n2015-01-01\r\n\r\n$ rubocop -v\r\n0.35.1\r\n\r\n$ rubocop -D ex.rb\r\nInspecting 1 file\r\nW\r\n\r\nOffenses:\r\n\r\nex.rb:3:6: W: Lint/FormatParameterMismatch: Number arguments (1) to format mismatches expected fields (0).\r\nputs format('%{y}-%{m}-%{d}', params)\r\n     ^^^^^^\r\n\r\n1 file inspected, 1 offense detected\r\n```"},"comment":{"url":"https://api.github.com/repos/bbatsov/rubocop/issues/comments/164909974","html_url":"https://github.com/bbatsov/rubocop/issues/2506#issuecomment-164909974","issue_url":"https://api.github.com/repos/bbatsov/rubocop/issues/2506","id":164909974,"user":{"login":"alexdowad","id":1067359,"avatar_url":"https://avatars.githubusercontent.com/u/1067359?v=3","gravatar_id":"","url":"https://api.github.com/users/alexdowad","html_url":"https://github.com/alexdowad","followers_url":"https://api.github.com/users/alexdowad/followers","following_url":"https://api.github.com/users/alexdowad/following{/other_user}","gists_url":"https://api.github.com/users/alexdowad/gists{/gist_id}","starred_url":"https://api.github.com/users/alexdowad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexdowad/subscriptions","organizations_url":"https://api.github.com/users/alexdowad/orgs","repos_url":"https://api.github.com/users/alexdowad/repos","events_url":"https://api.github.com/users/alexdowad/events{/privacy}","received_events_url":"https://api.github.com/users/alexdowad/received_events","type":"User","site_admin":false},"created_at":"2015-12-15T21:57:51Z","updated_at":"2015-12-15T21:57:51Z","body":"Just pushed a fix to a branch which has an open PR..."}}