{"action":"created","issue":{"url":"https://api.github.com/repos/SonarSource/SonarTS/issues/716","repository_url":"https://api.github.com/repos/SonarSource/SonarTS","labels_url":"https://api.github.com/repos/SonarSource/SonarTS/issues/716/labels{/name}","comments_url":"https://api.github.com/repos/SonarSource/SonarTS/issues/716/comments","events_url":"https://api.github.com/repos/SonarSource/SonarTS/issues/716/events","html_url":"https://github.com/SonarSource/SonarTS/issues/716","id":355089797,"node_id":"MDU6SXNzdWUzNTUwODk3OTc=","number":716,"title":"Rule S4822: Promise rejections should not be caught by 'try' block","user":{"login":"maximelkin","id":18092308,"node_id":"MDQ6VXNlcjE4MDkyMzA4","avatar_url":"https://avatars0.githubusercontent.com/u/18092308?v=4","gravatar_id":"","url":"https://api.github.com/users/maximelkin","html_url":"https://github.com/maximelkin","followers_url":"https://api.github.com/users/maximelkin/followers","following_url":"https://api.github.com/users/maximelkin/following{/other_user}","gists_url":"https://api.github.com/users/maximelkin/gists{/gist_id}","starred_url":"https://api.github.com/users/maximelkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maximelkin/subscriptions","organizations_url":"https://api.github.com/users/maximelkin/orgs","repos_url":"https://api.github.com/users/maximelkin/repos","events_url":"https://api.github.com/users/maximelkin/events{/privacy}","received_events_url":"https://api.github.com/users/maximelkin/received_events","type":"User","site_admin":false},"labels":[{"id":602791439,"node_id":"MDU6TGFiZWw2MDI3OTE0Mzk=","url":"https://api.github.com/repos/SonarSource/SonarTS/labels/new-rule","name":"new-rule","color":"0052cc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/SonarSource/SonarTS/milestones/15","html_url":"https://github.com/SonarSource/SonarTS/milestone/15","labels_url":"https://api.github.com/repos/SonarSource/SonarTS/milestones/15/labels","id":3587005,"node_id":"MDk6TWlsZXN0b25lMzU4NzAwNQ==","number":15,"title":"1.9","description":"","creator":{"login":"vilchik-elena","id":10108186,"node_id":"MDQ6VXNlcjEwMTA4MTg2","avatar_url":"https://avatars1.githubusercontent.com/u/10108186?v=4","gravatar_id":"","url":"https://api.github.com/users/vilchik-elena","html_url":"https://github.com/vilchik-elena","followers_url":"https://api.github.com/users/vilchik-elena/followers","following_url":"https://api.github.com/users/vilchik-elena/following{/other_user}","gists_url":"https://api.github.com/users/vilchik-elena/gists{/gist_id}","starred_url":"https://api.github.com/users/vilchik-elena/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vilchik-elena/subscriptions","organizations_url":"https://api.github.com/users/vilchik-elena/orgs","repos_url":"https://api.github.com/users/vilchik-elena/repos","events_url":"https://api.github.com/users/vilchik-elena/events{/privacy}","received_events_url":"https://api.github.com/users/vilchik-elena/received_events","type":"User","site_admin":false},"open_issues":21,"closed_issues":0,"state":"open","created_at":"2018-08-21T13:27:37Z","updated_at":"2018-09-21T07:06:18Z","due_on":null,"closed_at":null},"comments":15,"created_at":"2018-08-29T10:08:22Z","updated_at":"2018-10-03T14:04:25Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"**I want to request a feature.**\r\nRule to detect this cases \r\n```ts\r\ntry { \r\n   return promise;\r\n} catch (e) {}\r\n```\r\nwhich is possible error, because promise error will not be catch."},"comment":{"url":"https://api.github.com/repos/SonarSource/SonarTS/issues/comments/426649856","html_url":"https://github.com/SonarSource/SonarTS/issues/716#issuecomment-426649856","issue_url":"https://api.github.com/repos/SonarSource/SonarTS/issues/716","id":426649856,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNjY0OTg1Ng==","user":{"login":"vilchik-elena","id":10108186,"node_id":"MDQ6VXNlcjEwMTA4MTg2","avatar_url":"https://avatars1.githubusercontent.com/u/10108186?v=4","gravatar_id":"","url":"https://api.github.com/users/vilchik-elena","html_url":"https://github.com/vilchik-elena","followers_url":"https://api.github.com/users/vilchik-elena/followers","following_url":"https://api.github.com/users/vilchik-elena/following{/other_user}","gists_url":"https://api.github.com/users/vilchik-elena/gists{/gist_id}","starred_url":"https://api.github.com/users/vilchik-elena/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vilchik-elena/subscriptions","organizations_url":"https://api.github.com/users/vilchik-elena/orgs","repos_url":"https://api.github.com/users/vilchik-elena/repos","events_url":"https://api.github.com/users/vilchik-elena/events{/privacy}","received_events_url":"https://api.github.com/users/vilchik-elena/received_events","type":"User","site_admin":false},"created_at":"2018-10-03T14:04:25Z","updated_at":"2018-10-03T14:04:25Z","author_association":"CONTRIBUTOR","body":"> About try with only promises - i think this make rule unpredictable\r\nwhat do you mean?\r\n\r\n> Maybe use this rule only if async/await style in project used? (and special handling of always error-resolved methods or just Promise.reject)\r\nCould you elaborate more? (it would be nice with examples)"}}
{"actor":{"display_login":"vilchik-elena"}}