{"action":"created","issue":{"url":"https://api.github.com/repos/bbatsov/rubocop/issues/2960","repository_url":"https://api.github.com/repos/bbatsov/rubocop","labels_url":"https://api.github.com/repos/bbatsov/rubocop/issues/2960/labels{/name}","comments_url":"https://api.github.com/repos/bbatsov/rubocop/issues/2960/comments","events_url":"https://api.github.com/repos/bbatsov/rubocop/issues/2960/events","html_url":"https://github.com/bbatsov/rubocop/issues/2960","id":140889940,"number":2960,"title":"Lint/AssignmentInCondition not triggered for property access","user":{"login":"ptarjan","id":40143,"avatar_url":"https://avatars.githubusercontent.com/u/40143?v=3","gravatar_id":"","url":"https://api.github.com/users/ptarjan","html_url":"https://github.com/ptarjan","followers_url":"https://api.github.com/users/ptarjan/followers","following_url":"https://api.github.com/users/ptarjan/following{/other_user}","gists_url":"https://api.github.com/users/ptarjan/gists{/gist_id}","starred_url":"https://api.github.com/users/ptarjan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ptarjan/subscriptions","organizations_url":"https://api.github.com/users/ptarjan/orgs","repos_url":"https://api.github.com/users/ptarjan/repos","events_url":"https://api.github.com/users/ptarjan/events{/privacy}","received_events_url":"https://api.github.com/users/ptarjan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-15T06:51:40Z","updated_at":"2016-03-15T11:06:17Z","closed_at":null,"body":"## Expected behavior\r\n\r\n```\r\nif foo.bar = baz\r\n  91\r\nend\r\n```\r\n\r\nShould trigger the `Lint/AssignmentInCondition`\r\n## Actual behavior\r\n\r\nNo error\r\n\r\n## Steps to reproduce the problem\r\n\r\n```\r\n$ cat a.rb\r\nif foo.bar = baz\r\n  91\r\nend\r\n$ rubocop a.rb\r\nInspecting 1 file\r\n.\r\n\r\n1 file inspected, no offenses detected\r\n```\r\n\r\n## RuboCop version\r\n\r\n```\r\n$ rubocop -V\r\n0.38.0 (using Parser 2.3.0.6, running on ruby 2.1.2 x86_64-darwin15.0)\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/bbatsov/rubocop/issues/comments/196767054","html_url":"https://github.com/bbatsov/rubocop/issues/2960#issuecomment-196767054","issue_url":"https://api.github.com/repos/bbatsov/rubocop/issues/2960","id":196767054,"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":"2016-03-15T11:06:17Z","updated_at":"2016-03-15T11:06:17Z","body":"I've got a fix."}}