{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/1618","labels_url":"https://api.github.com/repos/eslint/eslint/issues/1618/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/1618/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/1618/events","html_url":"https://github.com/eslint/eslint/issues/1618","id":53321526,"number":1618,"title":"missing rule : space before the round brace for functions","user":{"login":"remitbri","id":166973,"avatar_url":"https://avatars.githubusercontent.com/u/166973?v=3","gravatar_id":"","url":"https://api.github.com/users/remitbri","html_url":"https://github.com/remitbri","followers_url":"https://api.github.com/users/remitbri/followers","following_url":"https://api.github.com/users/remitbri/following{/other_user}","gists_url":"https://api.github.com/users/remitbri/gists{/gist_id}","starred_url":"https://api.github.com/users/remitbri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remitbri/subscriptions","organizations_url":"https://api.github.com/users/remitbri/orgs","repos_url":"https://api.github.com/users/remitbri/repos","events_url":"https://api.github.com/users/remitbri/events{/privacy}","received_events_url":"https://api.github.com/users/remitbri/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/eslint/eslint/labels/question","name":"question","color":"cc317c"},{"url":"https://api.github.com/repos/eslint/eslint/labels/rule","name":"rule","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-01-04T01:41:30Z","updated_at":"2015-01-23T08:08:36Z","closed_at":null,"body":"Hi. I've tried to review each and every rule of JSHint, JSCS and ESLint to see if I could entirely \"get rid of\" the first two in favour of the latter one. As suggested by the owner of the @geteslint twitter account, I'm reporting the JSCS rules I've found actually not covered by ESLint. My apologies if it's a duplicate.\r\n\r\n - \"disallowSpacesInAnonymousFunctionExpression\"\r\n - \"requireSpacesInAnonymousFunctionExpression\"\r\n - \"disallowSpacesInNamedFunctionExpression\"\r\n - \"requireSpacesInNamedFunctionExpression\"\r\n - \"disallowSpacesInNamedFunctionExpression\"\r\n - \"requireSpacesInNamedFunctionExpression\"\r\n\r\nThe space before the opening curly brace is covered by \"space-before-block\".\r\nWhat is not covered is the space before the round brace, i.e being able to say this is invalid\r\n\r\n```js\r\nvar Foobar = {\r\n    foo: function (){}\r\n}\r\narray.map(function () {})\r\nvar x = function () {}\r\nvar x = function a (){}\r\nfunction a () {}\r\n```\r\n\r\nonly because, say, the rule would require a space between the function name (or `function` if it is anonymous) and the opening round brace. Or the contrary.\r\nAnd perhaps being able to differentiate between named and anonymous functions.\r\n\r\n\r\n\r\n\r\n<bountysource-plugin>\r\n\r\n---\r\nWant to back this issue? **[Place a bounty on it!](https://www.bountysource.com/issues/7465888-missing-rule-space-before-the-round-brace-for-functions?utm_campaign=plugin&utm_content=tracker%2F282608&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F282608&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/eslint/eslint/issues/comments/71159790","html_url":"https://github.com/eslint/eslint/issues/1618#issuecomment-71159790","issue_url":"https://api.github.com/repos/eslint/eslint/issues/1618","id":71159790,"user":{"login":"doberkofler","id":1009585,"avatar_url":"https://avatars.githubusercontent.com/u/1009585?v=3","gravatar_id":"","url":"https://api.github.com/users/doberkofler","html_url":"https://github.com/doberkofler","followers_url":"https://api.github.com/users/doberkofler/followers","following_url":"https://api.github.com/users/doberkofler/following{/other_user}","gists_url":"https://api.github.com/users/doberkofler/gists{/gist_id}","starred_url":"https://api.github.com/users/doberkofler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doberkofler/subscriptions","organizations_url":"https://api.github.com/users/doberkofler/orgs","repos_url":"https://api.github.com/users/doberkofler/repos","events_url":"https://api.github.com/users/doberkofler/events{/privacy}","received_events_url":"https://api.github.com/users/doberkofler/received_events","type":"User","site_admin":false},"created_at":"2015-01-23T08:08:36Z","updated_at":"2015-01-23T08:08:36Z","body":"+1"}}