{"action":"created","comment":{"url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/pulls/comments/87569605","pull_request_review_id":8177636,"id":87569605,"diff_hunk":"@@ -69,27 +69,27 @@ private static boolean visitDelta(final Map<IProject, Collection<IFile>> changed\n       // Workspace root\n       return true;\n     }\n-    if (!project.isAccessible()) {\n+    if (!project.isAccessible() || !SonarLintProject.getInstance(project).isAutoEnabled()) {\n       return false;\n     }\n-    final SonarLintProject sonarProject = SonarLintProject.getInstance(project);\n-    if (!sonarProject.isAutoEnabled()) {\n-      return false;\n-    }\n-    if (delta.getResource().getType() == IResource.FILE) {\n-      IFile file = (IFile) delta.getResource();\n-      if (delta.getKind() == IResourceDelta.CHANGED\n-        && (delta.getFlags() & IResourceDelta.CONTENT) != 0\n-        && shouldAnalyze(file)) {\n-        if (!changedFilesPerProject.containsKey(file.getProject())) {\n-          changedFilesPerProject.put(file.getProject(), new ArrayList<IFile>());\n-        }\n-        changedFilesPerProject.get(file.getProject()).add(file);\n+    if (isChangedFile(delta) && shouldAnalyze(delta.getResource())) {","path":"org.sonarlint.eclipse.core/src/org/sonarlint/eclipse/core/internal/SonarLintChangeListener.java","position":21,"original_position":21,"commit_id":"0ad217e35d38237cc0858a682b7af7d90c6b3dec","original_commit_id":"0ad217e35d38237cc0858a682b7af7d90c6b3dec","user":{"login":"janos-ss","id":21700885,"avatar_url":"https://avatars.githubusercontent.com/u/21700885?v=3","gravatar_id":"","url":"https://api.github.com/users/janos-ss","html_url":"https://github.com/janos-ss","followers_url":"https://api.github.com/users/janos-ss/followers","following_url":"https://api.github.com/users/janos-ss/following{/other_user}","gists_url":"https://api.github.com/users/janos-ss/gists{/gist_id}","starred_url":"https://api.github.com/users/janos-ss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janos-ss/subscriptions","organizations_url":"https://api.github.com/users/janos-ss/orgs","repos_url":"https://api.github.com/users/janos-ss/repos","events_url":"https://api.github.com/users/janos-ss/events{/privacy}","received_events_url":"https://api.github.com/users/janos-ss/received_events","type":"User","site_admin":false},"body":"Well-spotted, thanks!","created_at":"2016-11-11T10:48:16Z","updated_at":"2016-11-11T10:48:16Z","html_url":"https://github.com/SonarSource/sonarlint-eclipse/pull/61#discussion_r87569605","pull_request_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/pulls/61","_links":{"self":{"href":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/pulls/comments/87569605"},"html":{"href":"https://github.com/SonarSource/sonarlint-eclipse/pull/61#discussion_r87569605"},"pull_request":{"href":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/pulls/61"}}},"pull_request":{"url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/pulls/61","id":93189866,"html_url":"https://github.com/SonarSource/sonarlint-eclipse/pull/61","diff_url":"https://github.com/SonarSource/sonarlint-eclipse/pull/61.diff","patch_url":"https://github.com/SonarSource/sonarlint-eclipse/pull/61.patch","issue_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/issues/61","number":61,"state":"open","locked":false,"title":"Fix code smells","user":{"login":"janos-ss","id":21700885,"avatar_url":"https://avatars.githubusercontent.com/u/21700885?v=3","gravatar_id":"","url":"https://api.github.com/users/janos-ss","html_url":"https://github.com/janos-ss","followers_url":"https://api.github.com/users/janos-ss/followers","following_url":"https://api.github.com/users/janos-ss/following{/other_user}","gists_url":"https://api.github.com/users/janos-ss/gists{/gist_id}","starred_url":"https://api.github.com/users/janos-ss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janos-ss/subscriptions","organizations_url":"https://api.github.com/users/janos-ss/orgs","repos_url":"https://api.github.com/users/janos-ss/repos","events_url":"https://api.github.com/users/janos-ss/events{/privacy}","received_events_url":"https://api.github.com/users/janos-ss/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-10T16:59:28Z","updated_at":"2016-11-11T10:48:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"75fcbef0c993907bd29e5f3acd45c8b2e58df3b6","assignee":{"login":"dbmeneses","id":12492673,"avatar_url":"https://avatars.githubusercontent.com/u/12492673?v=3","gravatar_id":"","url":"https://api.github.com/users/dbmeneses","html_url":"https://github.com/dbmeneses","followers_url":"https://api.github.com/users/dbmeneses/followers","following_url":"https://api.github.com/users/dbmeneses/following{/other_user}","gists_url":"https://api.github.com/users/dbmeneses/gists{/gist_id}","starred_url":"https://api.github.com/users/dbmeneses/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbmeneses/subscriptions","organizations_url":"https://api.github.com/users/dbmeneses/orgs","repos_url":"https://api.github.com/users/dbmeneses/repos","events_url":"https://api.github.com/users/dbmeneses/events{/privacy}","received_events_url":"https://api.github.com/users/dbmeneses/received_events","type":"User","site_admin":false},"assignees":[{"login":"dbmeneses","id":12492673,"avatar_url":"https://avatars.githubusercontent.com/u/12492673?v=3","gravatar_id":"","url":"https://api.github.com/users/dbmeneses","html_url":"https://github.com/dbmeneses","followers_url":"https://api.github.com/users/dbmeneses/followers","following_url":"https://api.github.com/users/dbmeneses/following{/other_user}","gists_url":"https://api.github.com/users/dbmeneses/gists{/gist_id}","starred_url":"https://api.github.com/users/dbmeneses/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbmeneses/subscriptions","organizations_url":"https://api.github.com/users/dbmeneses/orgs","repos_url":"https://api.github.com/users/dbmeneses/repos","events_url":"https://api.github.com/users/dbmeneses/events{/privacy}","received_events_url":"https://api.github.com/users/dbmeneses/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/pulls/61/commits","review_comments_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/pulls/61/comments","review_comment_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/issues/61/comments","statuses_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/statuses/0ad217e35d38237cc0858a682b7af7d90c6b3dec","head":{"label":"SonarSource:fix-code-smells","ref":"fix-code-smells","sha":"0ad217e35d38237cc0858a682b7af7d90c6b3dec","user":{"login":"SonarSource","id":545988,"avatar_url":"https://avatars.githubusercontent.com/u/545988?v=3","gravatar_id":"","url":"https://api.github.com/users/SonarSource","html_url":"https://github.com/SonarSource","followers_url":"https://api.github.com/users/SonarSource/followers","following_url":"https://api.github.com/users/SonarSource/following{/other_user}","gists_url":"https://api.github.com/users/SonarSource/gists{/gist_id}","starred_url":"https://api.github.com/users/SonarSource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SonarSource/subscriptions","organizations_url":"https://api.github.com/users/SonarSource/orgs","repos_url":"https://api.github.com/users/SonarSource/repos","events_url":"https://api.github.com/users/SonarSource/events{/privacy}","received_events_url":"https://api.github.com/users/SonarSource/received_events","type":"Organization","site_admin":false},"repo":{"id":1350022,"name":"sonarlint-eclipse","full_name":"SonarSource/sonarlint-eclipse","owner":{"login":"SonarSource","id":545988,"avatar_url":"https://avatars.githubusercontent.com/u/545988?v=3","gravatar_id":"","url":"https://api.github.com/users/SonarSource","html_url":"https://github.com/SonarSource","followers_url":"https://api.github.com/users/SonarSource/followers","following_url":"https://api.github.com/users/SonarSource/following{/other_user}","gists_url":"https://api.github.com/users/SonarSource/gists{/gist_id}","starred_url":"https://api.github.com/users/SonarSource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SonarSource/subscriptions","organizations_url":"https://api.github.com/users/SonarSource/orgs","repos_url":"https://api.github.com/users/SonarSource/repos","events_url":"https://api.github.com/users/SonarSource/events{/privacy}","received_events_url":"https://api.github.com/users/SonarSource/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SonarSource/sonarlint-eclipse","description":":waning_crescent_moon: Eclipse Plugin","fork":false,"url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse","forks_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/forks","keys_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/teams","hooks_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/hooks","issue_events_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/issues/events{/number}","events_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/events","assignees_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/assignees{/user}","branches_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/branches{/branch}","tags_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/tags","blobs_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/git/refs{/sha}","trees_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/statuses/{sha}","languages_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/languages","stargazers_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/stargazers","contributors_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/contributors","subscribers_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/subscribers","subscription_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/subscription","commits_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/commits{/sha}","git_commits_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/git/commits{/sha}","comments_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/comments{/number}","issue_comment_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/issues/comments{/number}","contents_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/contents/{+path}","compare_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/merges","archive_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/downloads","issues_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/issues{/number}","pulls_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/pulls{/number}","milestones_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/milestones{/number}","notifications_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/labels{/name}","releases_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/releases{/id}","deployments_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/deployments","created_at":"2011-02-10T09:32:22Z","updated_at":"2016-11-09T15:46:13Z","pushed_at":"2016-11-10T16:59:28Z","git_url":"git://github.com/SonarSource/sonarlint-eclipse.git","ssh_url":"git@github.com:SonarSource/sonarlint-eclipse.git","clone_url":"https://github.com/SonarSource/sonarlint-eclipse.git","svn_url":"https://github.com/SonarSource/sonarlint-eclipse","homepage":"http://docs.sonarqube.org/display/SONAR/Installing+SonarQube+in+Eclipse","size":14363,"stargazers_count":89,"watchers_count":89,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":65,"mirror_url":null,"open_issues_count":3,"forks":65,"open_issues":3,"watchers":89,"default_branch":"master"}},"base":{"label":"SonarSource:master","ref":"master","sha":"fbbd33e010296e74fc51f2b17633434f4b71a1a7","user":{"login":"SonarSource","id":545988,"avatar_url":"https://avatars.githubusercontent.com/u/545988?v=3","gravatar_id":"","url":"https://api.github.com/users/SonarSource","html_url":"https://github.com/SonarSource","followers_url":"https://api.github.com/users/SonarSource/followers","following_url":"https://api.github.com/users/SonarSource/following{/other_user}","gists_url":"https://api.github.com/users/SonarSource/gists{/gist_id}","starred_url":"https://api.github.com/users/SonarSource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SonarSource/subscriptions","organizations_url":"https://api.github.com/users/SonarSource/orgs","repos_url":"https://api.github.com/users/SonarSource/repos","events_url":"https://api.github.com/users/SonarSource/events{/privacy}","received_events_url":"https://api.github.com/users/SonarSource/received_events","type":"Organization","site_admin":false},"repo":{"id":1350022,"name":"sonarlint-eclipse","full_name":"SonarSource/sonarlint-eclipse","owner":{"login":"SonarSource","id":545988,"avatar_url":"https://avatars.githubusercontent.com/u/545988?v=3","gravatar_id":"","url":"https://api.github.com/users/SonarSource","html_url":"https://github.com/SonarSource","followers_url":"https://api.github.com/users/SonarSource/followers","following_url":"https://api.github.com/users/SonarSource/following{/other_user}","gists_url":"https://api.github.com/users/SonarSource/gists{/gist_id}","starred_url":"https://api.github.com/users/SonarSource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SonarSource/subscriptions","organizations_url":"https://api.github.com/users/SonarSource/orgs","repos_url":"https://api.github.com/users/SonarSource/repos","events_url":"https://api.github.com/users/SonarSource/events{/privacy}","received_events_url":"https://api.github.com/users/SonarSource/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SonarSource/sonarlint-eclipse","description":":waning_crescent_moon: Eclipse Plugin","fork":false,"url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse","forks_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/forks","keys_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/teams","hooks_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/hooks","issue_events_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/issues/events{/number}","events_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/events","assignees_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/assignees{/user}","branches_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/branches{/branch}","tags_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/tags","blobs_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/git/refs{/sha}","trees_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/statuses/{sha}","languages_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/languages","stargazers_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/stargazers","contributors_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/contributors","subscribers_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/subscribers","subscription_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/subscription","commits_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/commits{/sha}","git_commits_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/git/commits{/sha}","comments_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/comments{/number}","issue_comment_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/issues/comments{/number}","contents_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/contents/{+path}","compare_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/merges","archive_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/downloads","issues_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/issues{/number}","pulls_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/pulls{/number}","milestones_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/milestones{/number}","notifications_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/labels{/name}","releases_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/releases{/id}","deployments_url":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/deployments","created_at":"2011-02-10T09:32:22Z","updated_at":"2016-11-09T15:46:13Z","pushed_at":"2016-11-10T16:59:28Z","git_url":"git://github.com/SonarSource/sonarlint-eclipse.git","ssh_url":"git@github.com:SonarSource/sonarlint-eclipse.git","clone_url":"https://github.com/SonarSource/sonarlint-eclipse.git","svn_url":"https://github.com/SonarSource/sonarlint-eclipse","homepage":"http://docs.sonarqube.org/display/SONAR/Installing+SonarQube+in+Eclipse","size":14363,"stargazers_count":89,"watchers_count":89,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":65,"mirror_url":null,"open_issues_count":3,"forks":65,"open_issues":3,"watchers":89,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/pulls/61"},"html":{"href":"https://github.com/SonarSource/sonarlint-eclipse/pull/61"},"issue":{"href":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/issues/61"},"comments":{"href":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/issues/61/comments"},"review_comments":{"href":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/pulls/61/comments"},"review_comment":{"href":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/pulls/61/commits"},"statuses":{"href":"https://api.github.com/repos/SonarSource/sonarlint-eclipse/statuses/0ad217e35d38237cc0858a682b7af7d90c6b3dec"}}}}
{"actor":{"display_login":"janos-ss"}}