{"action":"created","issue":{"url":"https://api.github.com/repos/troessner/reek/issues/1423","repository_url":"https://api.github.com/repos/troessner/reek","labels_url":"https://api.github.com/repos/troessner/reek/issues/1423/labels{/name}","comments_url":"https://api.github.com/repos/troessner/reek/issues/1423/comments","events_url":"https://api.github.com/repos/troessner/reek/issues/1423/events","html_url":"https://github.com/troessner/reek/issues/1423","id":365773943,"node_id":"MDU6SXNzdWUzNjU3NzM5NDM=","number":1423,"title":"False positive for InstanceVariableAssumption in ActiveRecord models","user":{"login":"coorasse","id":1319150,"node_id":"MDQ6VXNlcjEzMTkxNTA=","avatar_url":"https://avatars3.githubusercontent.com/u/1319150?v=4","gravatar_id":"","url":"https://api.github.com/users/coorasse","html_url":"https://github.com/coorasse","followers_url":"https://api.github.com/users/coorasse/followers","following_url":"https://api.github.com/users/coorasse/following{/other_user}","gists_url":"https://api.github.com/users/coorasse/gists{/gist_id}","starred_url":"https://api.github.com/users/coorasse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coorasse/subscriptions","organizations_url":"https://api.github.com/users/coorasse/orgs","repos_url":"https://api.github.com/users/coorasse/repos","events_url":"https://api.github.com/users/coorasse/events{/privacy}","received_events_url":"https://api.github.com/users/coorasse/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-02T07:33:36Z","updated_at":"2018-10-02T13:54:47Z","closed_at":null,"author_association":"NONE","body":"In ActiveRecord seems common to use the callback `after_initialize` to initialize instance variables, instead of overriding the `initialize` method.\r\nIf an instance variable is initialized in a callback reek does not recognise this and marks the error.\r\nI already saw a [similar issue](https://github.com/troessner/reek/issues/1133) and the [Working with Rails](https://github.com/troessner/reek/blob/master/README.md#working-with-rails) section of the README but it seems not to cover our use case"},"comment":{"url":"https://api.github.com/repos/troessner/reek/issues/comments/426282704","html_url":"https://github.com/troessner/reek/issues/1423#issuecomment-426282704","issue_url":"https://api.github.com/repos/troessner/reek/issues/1423","id":426282704,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNjI4MjcwNA==","user":{"login":"troessner","id":271109,"node_id":"MDQ6VXNlcjI3MTEwOQ==","avatar_url":"https://avatars0.githubusercontent.com/u/271109?v=4","gravatar_id":"","url":"https://api.github.com/users/troessner","html_url":"https://github.com/troessner","followers_url":"https://api.github.com/users/troessner/followers","following_url":"https://api.github.com/users/troessner/following{/other_user}","gists_url":"https://api.github.com/users/troessner/gists{/gist_id}","starred_url":"https://api.github.com/users/troessner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/troessner/subscriptions","organizations_url":"https://api.github.com/users/troessner/orgs","repos_url":"https://api.github.com/users/troessner/repos","events_url":"https://api.github.com/users/troessner/events{/privacy}","received_events_url":"https://api.github.com/users/troessner/received_events","type":"User","site_admin":false},"created_at":"2018-10-02T13:54:47Z","updated_at":"2018-10-02T13:54:47Z","author_association":"OWNER","body":"Nice observation. @mvz wdyt about adding a configuration to our \"working with rails\" section where we disable this detector for app/models?"}}
{"actor":{"display_login":"troessner"}}