{"action":"created","issue":{"url":"https://api.github.com/repos/SublimeLinter/SublimeLinter-rubocop/issues/61","repository_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter-rubocop","labels_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter-rubocop/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter-rubocop/issues/61/comments","events_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter-rubocop/issues/61/events","html_url":"https://github.com/SublimeLinter/SublimeLinter-rubocop/issues/61","id":340416956,"node_id":"MDU6SXNzdWUzNDA0MTY5NTY=","number":61,"title":"Rubocop incorrectly runs on HAML files","user":{"login":"sman591","id":1441807,"node_id":"MDQ6VXNlcjE0NDE4MDc=","avatar_url":"https://avatars0.githubusercontent.com/u/1441807?v=4","gravatar_id":"","url":"https://api.github.com/users/sman591","html_url":"https://github.com/sman591","followers_url":"https://api.github.com/users/sman591/followers","following_url":"https://api.github.com/users/sman591/following{/other_user}","gists_url":"https://api.github.com/users/sman591/gists{/gist_id}","starred_url":"https://api.github.com/users/sman591/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sman591/subscriptions","organizations_url":"https://api.github.com/users/sman591/orgs","repos_url":"https://api.github.com/users/sman591/repos","events_url":"https://api.github.com/users/sman591/events{/privacy}","received_events_url":"https://api.github.com/users/sman591/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-07-11T21:44:46Z","updated_at":"2018-07-16T14:51:56Z","closed_at":null,"author_association":"NONE","body":"When saving a change to a file, it appears SublimeLinter kicks off multiple, duplicate executions rubocop **for HAML files.**\r\n\r\nFor example, when I save a one-line file change to a HAML file, the Sublime Text console shows:\r\n```\r\nSublimeLinter: sublime_linter.py:250: Delay buffer 31 for 2.0s\r\nSublimeLinter: linter.py:887: Checking lint mode background vs lint reason None\r\nSublimeLinter: linter.py:887: Checking lint mode background vs lint reason None\r\nSublimeLinter: linter.py:887: Checking lint mode background vs lint reason None\r\nSublimeLinter: #923 linter.py:907: 'annotations' is linting '_form.html.haml'\r\nSublimeLinter: #924 linter.py:907: 'rubocop' is linting '_form.html.haml'\r\nSublimeLinter: #925 linter.py:907: 'rubocop' is linting '_form.html.haml'\r\nSublimeLinter: #926 linter.py:907: 'rubocop' is linting '_form.html.haml'\r\nSublimeLinter: #927 linter.py:907: 'rubocop' is linting '_form.html.haml'\r\nSublimeLinter: #929 linter.py:907: 'rubocop' is linting '_form.html.haml'\r\nSublimeLinter: #928 linter.py:907: 'rubocop' is linting '_form.html.haml'\r\nSublimeLinter: #930 linter.py:907: 'rubocop' is linting '_form.html.haml'\r\nSublimeLinter: #959 linter.py:907: 'haml' is linting '_form.html.haml'\r\nSublimeLinter: #925 linter.py:1263: Running ...\r\n```\r\n\r\n(with `\"debug\": true`)\r\n\r\nNot only does this kick off duplicate rubocop lints, it emits entirely incorrect lint errors such as:\r\n\r\n```\r\nLint/Syntax: unexpected token $end (Using Ruby 2.5 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)\r\n```\r\n\r\nFor almost ever line of haml:\r\n\r\n![screenshot 2018-07-11 17 44 26](https://user-images.githubusercontent.com/1441807/42600949-146bd27a-8532-11e8-9ff6-c3032d46e523.png)"},"comment":{"url":"https://api.github.com/repos/SublimeLinter/SublimeLinter-rubocop/issues/comments/405274006","html_url":"https://github.com/SublimeLinter/SublimeLinter-rubocop/issues/61#issuecomment-405274006","issue_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter-rubocop/issues/61","id":405274006,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNTI3NDAwNg==","user":{"login":"LeEnno","id":2038814,"node_id":"MDQ6VXNlcjIwMzg4MTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/2038814?v=4","gravatar_id":"","url":"https://api.github.com/users/LeEnno","html_url":"https://github.com/LeEnno","followers_url":"https://api.github.com/users/LeEnno/followers","following_url":"https://api.github.com/users/LeEnno/following{/other_user}","gists_url":"https://api.github.com/users/LeEnno/gists{/gist_id}","starred_url":"https://api.github.com/users/LeEnno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeEnno/subscriptions","organizations_url":"https://api.github.com/users/LeEnno/orgs","repos_url":"https://api.github.com/users/LeEnno/repos","events_url":"https://api.github.com/users/LeEnno/events{/privacy}","received_events_url":"https://api.github.com/users/LeEnno/received_events","type":"User","site_admin":false},"created_at":"2018-07-16T14:51:56Z","updated_at":"2018-07-16T14:51:56Z","author_association":"NONE","body":"> @LeEnno if you add a Ruby error to your Haml, does the error get displayed by SublimeLinter?\r\n\r\nNo."}}
{"actor":{"display_login":"LeEnno"}}