{"action":"closed","issue":{"url":"https://api.github.com/repos/meagar/guard-coffeelint/issues/7","repository_url":"https://api.github.com/repos/meagar/guard-coffeelint","labels_url":"https://api.github.com/repos/meagar/guard-coffeelint/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/meagar/guard-coffeelint/issues/7/comments","events_url":"https://api.github.com/repos/meagar/guard-coffeelint/issues/7/events","html_url":"https://github.com/meagar/guard-coffeelint/issues/7","id":60113524,"number":7,"title":"0.1.2 requires `coffeelint` to be in your path, and doesn't use the CoffeeLint gem","user":{"login":"meagar","id":242474,"avatar_url":"https://avatars.githubusercontent.com/u/242474?v=3","gravatar_id":"","url":"https://api.github.com/users/meagar","html_url":"https://github.com/meagar","followers_url":"https://api.github.com/users/meagar/followers","following_url":"https://api.github.com/users/meagar/following{/other_user}","gists_url":"https://api.github.com/users/meagar/gists{/gist_id}","starred_url":"https://api.github.com/users/meagar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meagar/subscriptions","organizations_url":"https://api.github.com/users/meagar/orgs","repos_url":"https://api.github.com/users/meagar/repos","events_url":"https://api.github.com/users/meagar/events{/privacy}","received_events_url":"https://api.github.com/users/meagar/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-06T15:09:53Z","updated_at":"2016-04-28T23:50:59Z","closed_at":"2016-04-28T23:50:59Z","body":"As of 0.1.2 I'm doing something pretty weird:\r\n\r\n\r\n```coffeescript\r\n# lib/guard/coffeelint.rb\r\n\r\n# This is reporting some bad false-positives\r\n#errors = ::Coffeelint.lint_file(path, config_file: @config_file)\r\n\r\n# This works :|\r\nerros = JSON.parse(`coffeelint --reporter raw -f #{@config_file} #{path}`).values.first\r\n```\r\n\r\nUsing the Coffeelint gem's `lint_file` method, I was getting a huge number of false-positives. A file that would pass using the command line `coffeelint` with no errors and no warnings using the *same configuration* would yield dozens of errors for lines that did not contain the error. Specifically:\r\n\r\n- errors about operator spacing on lines that contained no operators\r\n- errors about unnecessary double quotes on lines that contained `#{}` interpolation\r\n\r\nObviously this is less than ideal and will require you to have `coffeelint` in your path. If this doesn't work for you, use gem 0.1.1."}}