{"action":"closed","issue":{"url":"https://api.github.com/repos/brigade/haml-lint/issues/287","repository_url":"https://api.github.com/repos/brigade/haml-lint","labels_url":"https://api.github.com/repos/brigade/haml-lint/issues/287/labels{/name}","comments_url":"https://api.github.com/repos/brigade/haml-lint/issues/287/comments","events_url":"https://api.github.com/repos/brigade/haml-lint/issues/287/events","html_url":"https://github.com/brigade/haml-lint/issues/287","id":380130575,"node_id":"MDU6SXNzdWUzODAxMzA1NzU=","number":287,"title":":ruby break HAML-lint","user":{"login":"Ana06","id":16052290,"node_id":"MDQ6VXNlcjE2MDUyMjkw","avatar_url":"https://avatars3.githubusercontent.com/u/16052290?v=4","gravatar_id":"","url":"https://api.github.com/users/Ana06","html_url":"https://github.com/Ana06","followers_url":"https://api.github.com/users/Ana06/followers","following_url":"https://api.github.com/users/Ana06/following{/other_user}","gists_url":"https://api.github.com/users/Ana06/gists{/gist_id}","starred_url":"https://api.github.com/users/Ana06/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ana06/subscriptions","organizations_url":"https://api.github.com/users/Ana06/orgs","repos_url":"https://api.github.com/users/Ana06/repos","events_url":"https://api.github.com/users/Ana06/events{/privacy}","received_events_url":"https://api.github.com/users/Ana06/received_events","type":"User","site_admin":false},"labels":[{"id":56219762,"node_id":"MDU6TGFiZWw1NjIxOTc2Mg==","url":"https://api.github.com/repos/brigade/haml-lint/labels/question","name":"question","color":"d4c5f9","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-11-13T09:25:02Z","updated_at":"2018-11-14T16:06:57Z","closed_at":"2018-11-14T16:06:57Z","author_association":"CONTRIBUTOR","body":"This code:\r\n\r\n```ruby\r\n- @project = @image.package.try(:project)\r\n- @package = @image.package\r\n```\r\nproduces the following offenses (we have some custom configuration, but it is just related to what files are inspected):\r\n\r\n```ruby\r\napp/views/webui2/webui/_tabs.html.haml:1 [W] InstanceVariables: Avoid using instance variables in not_breadcrumb_items views\r\napp/views/webui2/webui/_tabs.html.haml:2 [W] InstanceVariables: Avoid using instance variables in not_breadcrumb_items views\r\n```\r\n\r\nWhile there are not offenses with these code:\r\n\r\n```haml\r\n:ruby\r\n  @project = @image.package.try(:project)\r\n  @package = @image.package\r\n```\r\n\r\n\r\nI don't really like the use of `:ruby`, but this looks like a bug to me, as it seems `:ruby` avoid that hamls inspects the rest of the code. :thinking: "}}
{"actor":{"display_login":"sds"}}