{"action":"created","comment":{"url":"https://api.github.com/repos/SonarSource/SonarTS/pulls/comments/214907983","pull_request_review_id":152057992,"id":214907983,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNDkwNzk4Mw==","diff_hunk":"@@ -19,7 +19,9 @@\n  */\n package org.sonar.plugin.typescript;\n \n+import java.io.File;\n import java.io.IOException;\n+import java.util.Optional;","path":"sonarts-sq-plugin/sonar-typescript-plugin/src/main/java/org/sonar/plugin/typescript/ContextualSensor.java","position":6,"original_position":6,"commit_id":"e2e652dd1d3ef675653aa7407f44af72277a2451","original_commit_id":"e2e652dd1d3ef675653aa7407f44af72277a2451","user":{"login":"sonarsource-next[bot]","id":39046940,"node_id":"MDM6Qm90MzkwNDY5NDA=","avatar_url":"https://avatars1.githubusercontent.com/in/11855?v=4","gravatar_id":"","url":"https://api.github.com/users/sonarsource-next%5Bbot%5D","html_url":"https://github.com/apps/sonarsource-next","followers_url":"https://api.github.com/users/sonarsource-next%5Bbot%5D/followers","following_url":"https://api.github.com/users/sonarsource-next%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/sonarsource-next%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/sonarsource-next%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sonarsource-next%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/sonarsource-next%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/sonarsource-next%5Bbot%5D/repos","events_url":"https://api.github.com/users/sonarsource-next%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/sonarsource-next%5Bbot%5D/received_events","type":"Bot","site_admin":false},"body":"![Code Smell](https://sonarsource.github.io/sonar-github/code_smell.png 'Code Smell') Code Smell: Remove this unused import 'java.util.Optional'. ([squid:UselessImportCheck](https://next.sonarqube.com/sonarqube/coding_rules#rule_key=squid%3AUselessImportCheck))\n\n[See it in SonarQube](https://next.sonarqube.com/sonarqube/project/issues?id=sonarts&pullRequest=707&issues=AWWkt8cMmDXkweNw4hKp&open=AWWkt8cMmDXkweNw4hKp)\n\n[ISSUE_KEY]: AWWkt8cMmDXkweNw4hKp","created_at":"2018-09-04T13:13:55Z","updated_at":"2018-09-04T13:13:55Z","html_url":"https://github.com/SonarSource/SonarTS/pull/707#discussion_r214907983","pull_request_url":"https://api.github.com/repos/SonarSource/SonarTS/pulls/707","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/SonarSource/SonarTS/pulls/comments/214907983"},"html":{"href":"https://github.com/SonarSource/SonarTS/pull/707#discussion_r214907983"},"pull_request":{"href":"https://api.github.com/repos/SonarSource/SonarTS/pulls/707"}}},"pull_request":{"url":"https://api.github.com/repos/SonarSource/SonarTS/pulls/707","id":211092208,"node_id":"MDExOlB1bGxSZXF1ZXN0MjExMDkyMjA4","html_url":"https://github.com/SonarSource/SonarTS/pull/707","diff_url":"https://github.com/SonarSource/SonarTS/pull/707.diff","patch_url":"https://github.com/SonarSource/SonarTS/pull/707.patch","issue_url":"https://api.github.com/repos/SonarSource/SonarTS/issues/707","number":707,"state":"open","locked":false,"title":"add property for tsconfig location.","user":{"login":"andrea-guarino-sonarsource","id":38876543,"node_id":"MDQ6VXNlcjM4ODc2NTQz","avatar_url":"https://avatars2.githubusercontent.com/u/38876543?v=4","gravatar_id":"","url":"https://api.github.com/users/andrea-guarino-sonarsource","html_url":"https://github.com/andrea-guarino-sonarsource","followers_url":"https://api.github.com/users/andrea-guarino-sonarsource/followers","following_url":"https://api.github.com/users/andrea-guarino-sonarsource/following{/other_user}","gists_url":"https://api.github.com/users/andrea-guarino-sonarsource/gists{/gist_id}","starred_url":"https://api.github.com/users/andrea-guarino-sonarsource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrea-guarino-sonarsource/subscriptions","organizations_url":"https://api.github.com/users/andrea-guarino-sonarsource/orgs","repos_url":"https://api.github.com/users/andrea-guarino-sonarsource/repos","events_url":"https://api.github.com/users/andrea-guarino-sonarsource/events{/privacy}","received_events_url":"https://api.github.com/users/andrea-guarino-sonarsource/received_events","type":"User","site_admin":false},"body":"Fixes #354 ","created_at":"2018-08-27T12:19:05Z","updated_at":"2018-09-04T13:13:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"413c8ca86c1f9e87d6eb14e54097c737e181d36b","assignee":{"login":"andrea-guarino-sonarsource","id":38876543,"node_id":"MDQ6VXNlcjM4ODc2NTQz","avatar_url":"https://avatars2.githubusercontent.com/u/38876543?v=4","gravatar_id":"","url":"https://api.github.com/users/andrea-guarino-sonarsource","html_url":"https://github.com/andrea-guarino-sonarsource","followers_url":"https://api.github.com/users/andrea-guarino-sonarsource/followers","following_url":"https://api.github.com/users/andrea-guarino-sonarsource/following{/other_user}","gists_url":"https://api.github.com/users/andrea-guarino-sonarsource/gists{/gist_id}","starred_url":"https://api.github.com/users/andrea-guarino-sonarsource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrea-guarino-sonarsource/subscriptions","organizations_url":"https://api.github.com/users/andrea-guarino-sonarsource/orgs","repos_url":"https://api.github.com/users/andrea-guarino-sonarsource/repos","events_url":"https://api.github.com/users/andrea-guarino-sonarsource/events{/privacy}","received_events_url":"https://api.github.com/users/andrea-guarino-sonarsource/received_events","type":"User","site_admin":false},"assignees":[{"login":"andrea-guarino-sonarsource","id":38876543,"node_id":"MDQ6VXNlcjM4ODc2NTQz","avatar_url":"https://avatars2.githubusercontent.com/u/38876543?v=4","gravatar_id":"","url":"https://api.github.com/users/andrea-guarino-sonarsource","html_url":"https://github.com/andrea-guarino-sonarsource","followers_url":"https://api.github.com/users/andrea-guarino-sonarsource/followers","following_url":"https://api.github.com/users/andrea-guarino-sonarsource/following{/other_user}","gists_url":"https://api.github.com/users/andrea-guarino-sonarsource/gists{/gist_id}","starred_url":"https://api.github.com/users/andrea-guarino-sonarsource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrea-guarino-sonarsource/subscriptions","organizations_url":"https://api.github.com/users/andrea-guarino-sonarsource/orgs","repos_url":"https://api.github.com/users/andrea-guarino-sonarsource/repos","events_url":"https://api.github.com/users/andrea-guarino-sonarsource/events{/privacy}","received_events_url":"https://api.github.com/users/andrea-guarino-sonarsource/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":708418924,"node_id":"MDU6TGFiZWw3MDg0MTg5MjQ=","url":"https://api.github.com/repos/SonarSource/SonarTS/labels/in%20progress","name":"in progress","color":"ededed","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/SonarSource/SonarTS/pulls/707/commits","review_comments_url":"https://api.github.com/repos/SonarSource/SonarTS/pulls/707/comments","review_comment_url":"https://api.github.com/repos/SonarSource/SonarTS/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SonarSource/SonarTS/issues/707/comments","statuses_url":"https://api.github.com/repos/SonarSource/SonarTS/statuses/e2e652dd1d3ef675653aa7407f44af72277a2451","head":{"label":"SonarSource:issue-354","ref":"issue-354","sha":"e2e652dd1d3ef675653aa7407f44af72277a2451","user":{"login":"SonarSource","id":545988,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU0NTk4OA==","avatar_url":"https://avatars0.githubusercontent.com/u/545988?v=4","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":90955014,"node_id":"MDEwOlJlcG9zaXRvcnk5MDk1NTAxNA==","name":"SonarTS","full_name":"SonarSource/SonarTS","owner":{"login":"SonarSource","id":545988,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU0NTk4OA==","avatar_url":"https://avatars0.githubusercontent.com/u/545988?v=4","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/SonarTS","description":"Static code analyzer for TypeScript","fork":false,"url":"https://api.github.com/repos/SonarSource/SonarTS","forks_url":"https://api.github.com/repos/SonarSource/SonarTS/forks","keys_url":"https://api.github.com/repos/SonarSource/SonarTS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SonarSource/SonarTS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SonarSource/SonarTS/teams","hooks_url":"https://api.github.com/repos/SonarSource/SonarTS/hooks","issue_events_url":"https://api.github.com/repos/SonarSource/SonarTS/issues/events{/number}","events_url":"https://api.github.com/repos/SonarSource/SonarTS/events","assignees_url":"https://api.github.com/repos/SonarSource/SonarTS/assignees{/user}","branches_url":"https://api.github.com/repos/SonarSource/SonarTS/branches{/branch}","tags_url":"https://api.github.com/repos/SonarSource/SonarTS/tags","blobs_url":"https://api.github.com/repos/SonarSource/SonarTS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SonarSource/SonarTS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SonarSource/SonarTS/git/refs{/sha}","trees_url":"https://api.github.com/repos/SonarSource/SonarTS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SonarSource/SonarTS/statuses/{sha}","languages_url":"https://api.github.com/repos/SonarSource/SonarTS/languages","stargazers_url":"https://api.github.com/repos/SonarSource/SonarTS/stargazers","contributors_url":"https://api.github.com/repos/SonarSource/SonarTS/contributors","subscribers_url":"https://api.github.com/repos/SonarSource/SonarTS/subscribers","subscription_url":"https://api.github.com/repos/SonarSource/SonarTS/subscription","commits_url":"https://api.github.com/repos/SonarSource/SonarTS/commits{/sha}","git_commits_url":"https://api.github.com/repos/SonarSource/SonarTS/git/commits{/sha}","comments_url":"https://api.github.com/repos/SonarSource/SonarTS/comments{/number}","issue_comment_url":"https://api.github.com/repos/SonarSource/SonarTS/issues/comments{/number}","contents_url":"https://api.github.com/repos/SonarSource/SonarTS/contents/{+path}","compare_url":"https://api.github.com/repos/SonarSource/SonarTS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SonarSource/SonarTS/merges","archive_url":"https://api.github.com/repos/SonarSource/SonarTS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SonarSource/SonarTS/downloads","issues_url":"https://api.github.com/repos/SonarSource/SonarTS/issues{/number}","pulls_url":"https://api.github.com/repos/SonarSource/SonarTS/pulls{/number}","milestones_url":"https://api.github.com/repos/SonarSource/SonarTS/milestones{/number}","notifications_url":"https://api.github.com/repos/SonarSource/SonarTS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SonarSource/SonarTS/labels{/name}","releases_url":"https://api.github.com/repos/SonarSource/SonarTS/releases{/id}","deployments_url":"https://api.github.com/repos/SonarSource/SonarTS/deployments","created_at":"2017-05-11T08:17:46Z","updated_at":"2018-09-04T12:54:52Z","pushed_at":"2018-09-04T13:05:39Z","git_url":"git://github.com/SonarSource/SonarTS.git","ssh_url":"git@github.com:SonarSource/SonarTS.git","clone_url":"https://github.com/SonarSource/SonarTS.git","svn_url":"https://github.com/SonarSource/SonarTS","homepage":"","size":6908,"stargazers_count":260,"watchers_count":260,"language":"TypeScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":28,"mirror_url":null,"archived":false,"open_issues_count":72,"license":{"key":"lgpl-3.0","name":"GNU Lesser General Public License v3.0","spdx_id":"LGPL-3.0","url":"https://api.github.com/licenses/lgpl-3.0","node_id":"MDc6TGljZW5zZTEy"},"forks":28,"open_issues":72,"watchers":260,"default_branch":"master"}},"base":{"label":"SonarSource:master","ref":"master","sha":"2b5e320649cf3453a26ce710839577fa7e1dc065","user":{"login":"SonarSource","id":545988,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU0NTk4OA==","avatar_url":"https://avatars0.githubusercontent.com/u/545988?v=4","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":90955014,"node_id":"MDEwOlJlcG9zaXRvcnk5MDk1NTAxNA==","name":"SonarTS","full_name":"SonarSource/SonarTS","owner":{"login":"SonarSource","id":545988,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU0NTk4OA==","avatar_url":"https://avatars0.githubusercontent.com/u/545988?v=4","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/SonarTS","description":"Static code analyzer for TypeScript","fork":false,"url":"https://api.github.com/repos/SonarSource/SonarTS","forks_url":"https://api.github.com/repos/SonarSource/SonarTS/forks","keys_url":"https://api.github.com/repos/SonarSource/SonarTS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SonarSource/SonarTS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SonarSource/SonarTS/teams","hooks_url":"https://api.github.com/repos/SonarSource/SonarTS/hooks","issue_events_url":"https://api.github.com/repos/SonarSource/SonarTS/issues/events{/number}","events_url":"https://api.github.com/repos/SonarSource/SonarTS/events","assignees_url":"https://api.github.com/repos/SonarSource/SonarTS/assignees{/user}","branches_url":"https://api.github.com/repos/SonarSource/SonarTS/branches{/branch}","tags_url":"https://api.github.com/repos/SonarSource/SonarTS/tags","blobs_url":"https://api.github.com/repos/SonarSource/SonarTS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SonarSource/SonarTS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SonarSource/SonarTS/git/refs{/sha}","trees_url":"https://api.github.com/repos/SonarSource/SonarTS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SonarSource/SonarTS/statuses/{sha}","languages_url":"https://api.github.com/repos/SonarSource/SonarTS/languages","stargazers_url":"https://api.github.com/repos/SonarSource/SonarTS/stargazers","contributors_url":"https://api.github.com/repos/SonarSource/SonarTS/contributors","subscribers_url":"https://api.github.com/repos/SonarSource/SonarTS/subscribers","subscription_url":"https://api.github.com/repos/SonarSource/SonarTS/subscription","commits_url":"https://api.github.com/repos/SonarSource/SonarTS/commits{/sha}","git_commits_url":"https://api.github.com/repos/SonarSource/SonarTS/git/commits{/sha}","comments_url":"https://api.github.com/repos/SonarSource/SonarTS/comments{/number}","issue_comment_url":"https://api.github.com/repos/SonarSource/SonarTS/issues/comments{/number}","contents_url":"https://api.github.com/repos/SonarSource/SonarTS/contents/{+path}","compare_url":"https://api.github.com/repos/SonarSource/SonarTS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SonarSource/SonarTS/merges","archive_url":"https://api.github.com/repos/SonarSource/SonarTS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SonarSource/SonarTS/downloads","issues_url":"https://api.github.com/repos/SonarSource/SonarTS/issues{/number}","pulls_url":"https://api.github.com/repos/SonarSource/SonarTS/pulls{/number}","milestones_url":"https://api.github.com/repos/SonarSource/SonarTS/milestones{/number}","notifications_url":"https://api.github.com/repos/SonarSource/SonarTS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SonarSource/SonarTS/labels{/name}","releases_url":"https://api.github.com/repos/SonarSource/SonarTS/releases{/id}","deployments_url":"https://api.github.com/repos/SonarSource/SonarTS/deployments","created_at":"2017-05-11T08:17:46Z","updated_at":"2018-09-04T12:54:52Z","pushed_at":"2018-09-04T13:05:39Z","git_url":"git://github.com/SonarSource/SonarTS.git","ssh_url":"git@github.com:SonarSource/SonarTS.git","clone_url":"https://github.com/SonarSource/SonarTS.git","svn_url":"https://github.com/SonarSource/SonarTS","homepage":"","size":6908,"stargazers_count":260,"watchers_count":260,"language":"TypeScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":28,"mirror_url":null,"archived":false,"open_issues_count":72,"license":{"key":"lgpl-3.0","name":"GNU Lesser General Public License v3.0","spdx_id":"LGPL-3.0","url":"https://api.github.com/licenses/lgpl-3.0","node_id":"MDc6TGljZW5zZTEy"},"forks":28,"open_issues":72,"watchers":260,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SonarSource/SonarTS/pulls/707"},"html":{"href":"https://github.com/SonarSource/SonarTS/pull/707"},"issue":{"href":"https://api.github.com/repos/SonarSource/SonarTS/issues/707"},"comments":{"href":"https://api.github.com/repos/SonarSource/SonarTS/issues/707/comments"},"review_comments":{"href":"https://api.github.com/repos/SonarSource/SonarTS/pulls/707/comments"},"review_comment":{"href":"https://api.github.com/repos/SonarSource/SonarTS/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SonarSource/SonarTS/pulls/707/commits"},"statuses":{"href":"https://api.github.com/repos/SonarSource/SonarTS/statuses/e2e652dd1d3ef675653aa7407f44af72277a2451"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"sonarsource-next"}}