{"action":"created","comment":{"url":"https://api.github.com/repos/AtomLinter/linter-erlc/pulls/comments/49774758","id":49774758,"diff_hunk":"@@ -10,6 +15,82 @@ module.exports =\n       type: 'string'\n       default: ''\n \n-\n   activate: ->\n-    console.log 'activate linter-erlc'\n+    @subscriptions = new CompositeDisposable\n+    @subscriptions.add atom.config.observe 'linter-erlc.executablePath',\n+    (executablePath) =>\n+      @executablePath = executablePath\n+  deactivate: ->\n+    @subscriptions.dispose()\n+  provideLinter: ->\n+    helpers = require('atom-linter')\n+    provider =\n+      name: 'Erlc'\n+      grammarScopes: ['source.erlang']\n+      scope: 'file'\n+      lintOnFly: false\n+      lint: (textEditor) =>\n+        filePath = textEditor.getPath()\n+        args = [\"-Wall\", \"-v\", \"-o\", os.tmpDir()]","path":"lib/init.coffee","position":35,"original_position":35,"commit_id":"284459764225bbedf21094d34f64fa74eaf7772d","original_commit_id":"284459764225bbedf21094d34f64fa74eaf7772d","user":{"login":"markbaas","id":1153495,"avatar_url":"https://avatars.githubusercontent.com/u/1153495?v=3","gravatar_id":"","url":"https://api.github.com/users/markbaas","html_url":"https://github.com/markbaas","followers_url":"https://api.github.com/users/markbaas/followers","following_url":"https://api.github.com/users/markbaas/following{/other_user}","gists_url":"https://api.github.com/users/markbaas/gists{/gist_id}","starred_url":"https://api.github.com/users/markbaas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markbaas/subscriptions","organizations_url":"https://api.github.com/users/markbaas/orgs","repos_url":"https://api.github.com/users/markbaas/repos","events_url":"https://api.github.com/users/markbaas/events{/privacy}","received_events_url":"https://api.github.com/users/markbaas/received_events","type":"User","site_admin":false},"body":"What would be the right approach to delete this temporary file? fs.unlink just before the `return toReturn` line?","created_at":"2016-01-14T19:43:58Z","updated_at":"2016-01-14T19:43:58Z","html_url":"https://github.com/AtomLinter/linter-erlc/pull/8#discussion_r49774758","pull_request_url":"https://api.github.com/repos/AtomLinter/linter-erlc/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/AtomLinter/linter-erlc/pulls/comments/49774758"},"html":{"href":"https://github.com/AtomLinter/linter-erlc/pull/8#discussion_r49774758"},"pull_request":{"href":"https://api.github.com/repos/AtomLinter/linter-erlc/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/AtomLinter/linter-erlc/pulls/8","id":56039389,"html_url":"https://github.com/AtomLinter/linter-erlc/pull/8","diff_url":"https://github.com/AtomLinter/linter-erlc/pull/8.diff","patch_url":"https://github.com/AtomLinter/linter-erlc/pull/8.patch","issue_url":"https://api.github.com/repos/AtomLinter/linter-erlc/issues/8","number":8,"state":"open","locked":false,"title":"updated to new linter with some additions","user":{"login":"markbaas","id":1153495,"avatar_url":"https://avatars.githubusercontent.com/u/1153495?v=3","gravatar_id":"","url":"https://api.github.com/users/markbaas","html_url":"https://github.com/markbaas","followers_url":"https://api.github.com/users/markbaas/followers","following_url":"https://api.github.com/users/markbaas/following{/other_user}","gists_url":"https://api.github.com/users/markbaas/gists{/gist_id}","starred_url":"https://api.github.com/users/markbaas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markbaas/subscriptions","organizations_url":"https://api.github.com/users/markbaas/orgs","repos_url":"https://api.github.com/users/markbaas/repos","events_url":"https://api.github.com/users/markbaas/events{/privacy}","received_events_url":"https://api.github.com/users/markbaas/received_events","type":"User","site_admin":false},"body":"There may still some things missing, but I wanted the PR to start collaborating.\r\n\r\nFixes #3.\r\nFixes #4.","created_at":"2016-01-14T14:12:29Z","updated_at":"2016-01-14T19:43:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"96d1589d9aec4e0a0b174e936cdce6c8c9d660cb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/AtomLinter/linter-erlc/pulls/8/commits","review_comments_url":"https://api.github.com/repos/AtomLinter/linter-erlc/pulls/8/comments","review_comment_url":"https://api.github.com/repos/AtomLinter/linter-erlc/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AtomLinter/linter-erlc/issues/8/comments","statuses_url":"https://api.github.com/repos/AtomLinter/linter-erlc/statuses/284459764225bbedf21094d34f64fa74eaf7772d","head":{"label":"markbaas:master","ref":"master","sha":"284459764225bbedf21094d34f64fa74eaf7772d","user":{"login":"markbaas","id":1153495,"avatar_url":"https://avatars.githubusercontent.com/u/1153495?v=3","gravatar_id":"","url":"https://api.github.com/users/markbaas","html_url":"https://github.com/markbaas","followers_url":"https://api.github.com/users/markbaas/followers","following_url":"https://api.github.com/users/markbaas/following{/other_user}","gists_url":"https://api.github.com/users/markbaas/gists{/gist_id}","starred_url":"https://api.github.com/users/markbaas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markbaas/subscriptions","organizations_url":"https://api.github.com/users/markbaas/orgs","repos_url":"https://api.github.com/users/markbaas/repos","events_url":"https://api.github.com/users/markbaas/events{/privacy}","received_events_url":"https://api.github.com/users/markbaas/received_events","type":"User","site_admin":false},"repo":{"id":49651175,"name":"linter-erlc","full_name":"markbaas/linter-erlc","owner":{"login":"markbaas","id":1153495,"avatar_url":"https://avatars.githubusercontent.com/u/1153495?v=3","gravatar_id":"","url":"https://api.github.com/users/markbaas","html_url":"https://github.com/markbaas","followers_url":"https://api.github.com/users/markbaas/followers","following_url":"https://api.github.com/users/markbaas/following{/other_user}","gists_url":"https://api.github.com/users/markbaas/gists{/gist_id}","starred_url":"https://api.github.com/users/markbaas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markbaas/subscriptions","organizations_url":"https://api.github.com/users/markbaas/orgs","repos_url":"https://api.github.com/users/markbaas/repos","events_url":"https://api.github.com/users/markbaas/events{/privacy}","received_events_url":"https://api.github.com/users/markbaas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/markbaas/linter-erlc","description":"Atom.app Linter plugin for ErlC","fork":true,"url":"https://api.github.com/repos/markbaas/linter-erlc","forks_url":"https://api.github.com/repos/markbaas/linter-erlc/forks","keys_url":"https://api.github.com/repos/markbaas/linter-erlc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/markbaas/linter-erlc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/markbaas/linter-erlc/teams","hooks_url":"https://api.github.com/repos/markbaas/linter-erlc/hooks","issue_events_url":"https://api.github.com/repos/markbaas/linter-erlc/issues/events{/number}","events_url":"https://api.github.com/repos/markbaas/linter-erlc/events","assignees_url":"https://api.github.com/repos/markbaas/linter-erlc/assignees{/user}","branches_url":"https://api.github.com/repos/markbaas/linter-erlc/branches{/branch}","tags_url":"https://api.github.com/repos/markbaas/linter-erlc/tags","blobs_url":"https://api.github.com/repos/markbaas/linter-erlc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/markbaas/linter-erlc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/markbaas/linter-erlc/git/refs{/sha}","trees_url":"https://api.github.com/repos/markbaas/linter-erlc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/markbaas/linter-erlc/statuses/{sha}","languages_url":"https://api.github.com/repos/markbaas/linter-erlc/languages","stargazers_url":"https://api.github.com/repos/markbaas/linter-erlc/stargazers","contributors_url":"https://api.github.com/repos/markbaas/linter-erlc/contributors","subscribers_url":"https://api.github.com/repos/markbaas/linter-erlc/subscribers","subscription_url":"https://api.github.com/repos/markbaas/linter-erlc/subscription","commits_url":"https://api.github.com/repos/markbaas/linter-erlc/commits{/sha}","git_commits_url":"https://api.github.com/repos/markbaas/linter-erlc/git/commits{/sha}","comments_url":"https://api.github.com/repos/markbaas/linter-erlc/comments{/number}","issue_comment_url":"https://api.github.com/repos/markbaas/linter-erlc/issues/comments{/number}","contents_url":"https://api.github.com/repos/markbaas/linter-erlc/contents/{+path}","compare_url":"https://api.github.com/repos/markbaas/linter-erlc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/markbaas/linter-erlc/merges","archive_url":"https://api.github.com/repos/markbaas/linter-erlc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/markbaas/linter-erlc/downloads","issues_url":"https://api.github.com/repos/markbaas/linter-erlc/issues{/number}","pulls_url":"https://api.github.com/repos/markbaas/linter-erlc/pulls{/number}","milestones_url":"https://api.github.com/repos/markbaas/linter-erlc/milestones{/number}","notifications_url":"https://api.github.com/repos/markbaas/linter-erlc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/markbaas/linter-erlc/labels{/name}","releases_url":"https://api.github.com/repos/markbaas/linter-erlc/releases{/id}","created_at":"2016-01-14T14:10:58Z","updated_at":"2016-01-14T14:10:58Z","pushed_at":"2016-01-14T14:11:43Z","git_url":"git://github.com/markbaas/linter-erlc.git","ssh_url":"git@github.com:markbaas/linter-erlc.git","clone_url":"https://github.com/markbaas/linter-erlc.git","svn_url":"https://github.com/markbaas/linter-erlc","homepage":"https://atom.io/packages/linter-erlc","size":7,"stargazers_count":0,"watchers_count":0,"language":"CoffeeScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"AtomLinter:master","ref":"master","sha":"762e35bf1fd28fd0dec91b00edcba31ef61b858f","user":{"login":"AtomLinter","id":7242824,"avatar_url":"https://avatars.githubusercontent.com/u/7242824?v=3","gravatar_id":"","url":"https://api.github.com/users/AtomLinter","html_url":"https://github.com/AtomLinter","followers_url":"https://api.github.com/users/AtomLinter/followers","following_url":"https://api.github.com/users/AtomLinter/following{/other_user}","gists_url":"https://api.github.com/users/AtomLinter/gists{/gist_id}","starred_url":"https://api.github.com/users/AtomLinter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AtomLinter/subscriptions","organizations_url":"https://api.github.com/users/AtomLinter/orgs","repos_url":"https://api.github.com/users/AtomLinter/repos","events_url":"https://api.github.com/users/AtomLinter/events{/privacy}","received_events_url":"https://api.github.com/users/AtomLinter/received_events","type":"Organization","site_admin":false},"repo":{"id":26179136,"name":"linter-erlc","full_name":"AtomLinter/linter-erlc","owner":{"login":"AtomLinter","id":7242824,"avatar_url":"https://avatars.githubusercontent.com/u/7242824?v=3","gravatar_id":"","url":"https://api.github.com/users/AtomLinter","html_url":"https://github.com/AtomLinter","followers_url":"https://api.github.com/users/AtomLinter/followers","following_url":"https://api.github.com/users/AtomLinter/following{/other_user}","gists_url":"https://api.github.com/users/AtomLinter/gists{/gist_id}","starred_url":"https://api.github.com/users/AtomLinter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AtomLinter/subscriptions","organizations_url":"https://api.github.com/users/AtomLinter/orgs","repos_url":"https://api.github.com/users/AtomLinter/repos","events_url":"https://api.github.com/users/AtomLinter/events{/privacy}","received_events_url":"https://api.github.com/users/AtomLinter/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AtomLinter/linter-erlc","description":"Atom.app Linter plugin for ErlC","fork":false,"url":"https://api.github.com/repos/AtomLinter/linter-erlc","forks_url":"https://api.github.com/repos/AtomLinter/linter-erlc/forks","keys_url":"https://api.github.com/repos/AtomLinter/linter-erlc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AtomLinter/linter-erlc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AtomLinter/linter-erlc/teams","hooks_url":"https://api.github.com/repos/AtomLinter/linter-erlc/hooks","issue_events_url":"https://api.github.com/repos/AtomLinter/linter-erlc/issues/events{/number}","events_url":"https://api.github.com/repos/AtomLinter/linter-erlc/events","assignees_url":"https://api.github.com/repos/AtomLinter/linter-erlc/assignees{/user}","branches_url":"https://api.github.com/repos/AtomLinter/linter-erlc/branches{/branch}","tags_url":"https://api.github.com/repos/AtomLinter/linter-erlc/tags","blobs_url":"https://api.github.com/repos/AtomLinter/linter-erlc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AtomLinter/linter-erlc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AtomLinter/linter-erlc/git/refs{/sha}","trees_url":"https://api.github.com/repos/AtomLinter/linter-erlc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AtomLinter/linter-erlc/statuses/{sha}","languages_url":"https://api.github.com/repos/AtomLinter/linter-erlc/languages","stargazers_url":"https://api.github.com/repos/AtomLinter/linter-erlc/stargazers","contributors_url":"https://api.github.com/repos/AtomLinter/linter-erlc/contributors","subscribers_url":"https://api.github.com/repos/AtomLinter/linter-erlc/subscribers","subscription_url":"https://api.github.com/repos/AtomLinter/linter-erlc/subscription","commits_url":"https://api.github.com/repos/AtomLinter/linter-erlc/commits{/sha}","git_commits_url":"https://api.github.com/repos/AtomLinter/linter-erlc/git/commits{/sha}","comments_url":"https://api.github.com/repos/AtomLinter/linter-erlc/comments{/number}","issue_comment_url":"https://api.github.com/repos/AtomLinter/linter-erlc/issues/comments{/number}","contents_url":"https://api.github.com/repos/AtomLinter/linter-erlc/contents/{+path}","compare_url":"https://api.github.com/repos/AtomLinter/linter-erlc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AtomLinter/linter-erlc/merges","archive_url":"https://api.github.com/repos/AtomLinter/linter-erlc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AtomLinter/linter-erlc/downloads","issues_url":"https://api.github.com/repos/AtomLinter/linter-erlc/issues{/number}","pulls_url":"https://api.github.com/repos/AtomLinter/linter-erlc/pulls{/number}","milestones_url":"https://api.github.com/repos/AtomLinter/linter-erlc/milestones{/number}","notifications_url":"https://api.github.com/repos/AtomLinter/linter-erlc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AtomLinter/linter-erlc/labels{/name}","releases_url":"https://api.github.com/repos/AtomLinter/linter-erlc/releases{/id}","created_at":"2014-11-04T17:04:22Z","updated_at":"2015-01-12T14:54:31Z","pushed_at":"2016-01-14T14:12:29Z","git_url":"git://github.com/AtomLinter/linter-erlc.git","ssh_url":"git@github.com:AtomLinter/linter-erlc.git","clone_url":"https://github.com/AtomLinter/linter-erlc.git","svn_url":"https://github.com/AtomLinter/linter-erlc","homepage":"https://atom.io/packages/linter-erlc","size":148,"stargazers_count":0,"watchers_count":0,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":4,"forks":2,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AtomLinter/linter-erlc/pulls/8"},"html":{"href":"https://github.com/AtomLinter/linter-erlc/pull/8"},"issue":{"href":"https://api.github.com/repos/AtomLinter/linter-erlc/issues/8"},"comments":{"href":"https://api.github.com/repos/AtomLinter/linter-erlc/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/AtomLinter/linter-erlc/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/AtomLinter/linter-erlc/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AtomLinter/linter-erlc/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/AtomLinter/linter-erlc/statuses/284459764225bbedf21094d34f64fa74eaf7772d"}}}}