{"action":"created","issue":{"url":"https://api.github.com/repos/SonarSource/SonarJS/issues/1111","repository_url":"https://api.github.com/repos/SonarSource/SonarJS","labels_url":"https://api.github.com/repos/SonarSource/SonarJS/issues/1111/labels{/name}","comments_url":"https://api.github.com/repos/SonarSource/SonarJS/issues/1111/comments","events_url":"https://api.github.com/repos/SonarSource/SonarJS/issues/1111/events","html_url":"https://github.com/SonarSource/SonarJS/issues/1111","id":370479376,"node_id":"MDU6SXNzdWUzNzA0NzkzNzY=","number":1111,"title":"Feature request: parse trailing commas in function parameters","user":{"login":"zwik","id":1595807,"node_id":"MDQ6VXNlcjE1OTU4MDc=","avatar_url":"https://avatars3.githubusercontent.com/u/1595807?v=4","gravatar_id":"","url":"https://api.github.com/users/zwik","html_url":"https://github.com/zwik","followers_url":"https://api.github.com/users/zwik/followers","following_url":"https://api.github.com/users/zwik/following{/other_user}","gists_url":"https://api.github.com/users/zwik/gists{/gist_id}","starred_url":"https://api.github.com/users/zwik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zwik/subscriptions","organizations_url":"https://api.github.com/users/zwik/orgs","repos_url":"https://api.github.com/users/zwik/repos","events_url":"https://api.github.com/users/zwik/events{/privacy}","received_events_url":"https://api.github.com/users/zwik/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-10-16T07:43:07Z","updated_at":"2018-11-23T08:37:04Z","closed_at":"2018-11-23T08:37:04Z","author_association":"NONE","body":"**I want to request a feature.**\r\nThere are several rules that describe trailing commas, most of them are for object literals but not for function parameters. So hereby I request that trailing commas can be parsed and acted on accordingly.\r\n\r\nObject literal rule is as follows:\r\n```\r\nvar myObject = {\r\n  'foo': oof,\r\n  'bar' rab,\r\n};\r\n```\r\nThis can either be correct or wrong, depending on the rules.\r\n\r\nFor functions this can be the case:\r\n```\r\nmyFunction(arg1, arg2,) {\r\n...\r\n};\r\n```\r\nThe problem can be the trailing comma behind arg2. Can this be added? Thanks in advance!\r\n\r\nAlso, ESLint supports this: https://eslint.org/docs/rules/comma-dangle"},"comment":{"url":"https://api.github.com/repos/SonarSource/SonarJS/issues/comments/441180293","html_url":"https://github.com/SonarSource/SonarJS/issues/1111#issuecomment-441180293","issue_url":"https://api.github.com/repos/SonarSource/SonarJS/issues/1111","id":441180293,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MTE4MDI5Mw==","user":{"login":"zwik","id":1595807,"node_id":"MDQ6VXNlcjE1OTU4MDc=","avatar_url":"https://avatars3.githubusercontent.com/u/1595807?v=4","gravatar_id":"","url":"https://api.github.com/users/zwik","html_url":"https://github.com/zwik","followers_url":"https://api.github.com/users/zwik/followers","following_url":"https://api.github.com/users/zwik/following{/other_user}","gists_url":"https://api.github.com/users/zwik/gists{/gist_id}","starred_url":"https://api.github.com/users/zwik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zwik/subscriptions","organizations_url":"https://api.github.com/users/zwik/orgs","repos_url":"https://api.github.com/users/zwik/repos","events_url":"https://api.github.com/users/zwik/events{/privacy}","received_events_url":"https://api.github.com/users/zwik/received_events","type":"User","site_admin":false},"created_at":"2018-11-23T08:37:04Z","updated_at":"2018-11-23T08:37:04Z","author_association":"NONE","body":"Thanks again for the quick reply @vilchik-elena ! I'll discuss with my team on how we're going to proceed! We're running on much older versions of both the SQ and the plugin. I'll contact devops for possibilities to upgrade. For now I'll close the ticket. I might reopen."}}
{"actor":{"display_login":"zwik"}}