{"action":"closed","issue":{"url":"https://api.github.com/repos/dart-lang/dart_style/issues/280","labels_url":"https://api.github.com/repos/dart-lang/dart_style/issues/280/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/dart_style/issues/280/comments","events_url":"https://api.github.com/repos/dart-lang/dart_style/issues/280/events","html_url":"https://github.com/dart-lang/dart_style/issues/280","id":85320866,"number":280,"title":"dartfmt should remove whitespace between function name and param list","user":{"login":"DartBot","id":8958862,"avatar_url":"https://avatars.githubusercontent.com/u/8958862?v=3","gravatar_id":"","url":"https://api.github.com/users/DartBot","html_url":"https://github.com/DartBot","followers_url":"https://api.github.com/users/DartBot/followers","following_url":"https://api.github.com/users/DartBot/following{/other_user}","gists_url":"https://api.github.com/users/DartBot/gists{/gist_id}","starred_url":"https://api.github.com/users/DartBot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DartBot/subscriptions","organizations_url":"https://api.github.com/users/DartBot/orgs","repos_url":"https://api.github.com/users/DartBot/repos","events_url":"https://api.github.com/users/DartBot/events{/privacy}","received_events_url":"https://api.github.com/users/DartBot/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dart-lang/dart_style/labels/AssumedStale","name":"AssumedStale","color":"ededed"},{"url":"https://api.github.com/repos/dart-lang/dart_style/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-04T23:11:40Z","updated_at":"2015-06-04T23:11:41Z","closed_at":"2015-06-04T23:11:41Z","body":"_Originally opened as dart-lang/sdk#21489_\n\n*This issue was originally filed by guillermo.li...&#064;gmail.com*\n_____\n**What steps will clearly show the issue / need for enhancement?**\n\n0. Given this snippet (in a larger, valid, otherwise dartfmt-compliant .dart file):\n\n&equals;&equals;&equals;\n&nbsp;&nbsp;if (state.atTerminator) {\n&nbsp;&nbsp;&nbsp;&nbsp;state.emit (itemVariable);\n&nbsp;&nbsp;&nbsp;&nbsp;return lexInsideAction;\n&nbsp;&nbsp;}\n&equals;&equals;&equals;\n\n1. Run dartfmt on the file\n\n**What is the current output?**\n\nThe current output is the same snippet, unchanged:\n\n&equals;&equals;&equals;\n&nbsp;&nbsp;if (state.atTerminator) {\n&nbsp;&nbsp;&nbsp;&nbsp;state.emit (itemVariable);\n&nbsp;&nbsp;&nbsp;&nbsp;return lexInsideAction;\n&nbsp;&nbsp;}\n&equals;&equals;&equals;\n\n\n**What would you like to see instead?**\n\nI would like to have the option to tell dartfmt to remove whitespace between function names and their corresponding parenthesis that enclose the function's arguments. Following the above example, I'd expect this:\n\n&equals;&equals;&equals;\n&nbsp;&nbsp;if (state.atTerminator) {\n&nbsp;&nbsp;&nbsp;&nbsp;state.emit(itemVariable);\n&nbsp;&nbsp;&nbsp;&nbsp;return lexInsideAction;\n&nbsp;&nbsp;}\n&equals;&equals;&equals;\n\n**What version of the product are you using? On what operating system?**\n\nSublime Text Information\n&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;==\nversion: 3066 (dev channel)\nplatform: windows\narchitecture: x64\n\nDart SDK Information\n&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;&equals;==\nversion: Dart VM version: 1.7.2 (Tue Oct 14 07:41:22 2014) on &quot;windows_x64&quot;\n\n**Please provide any additional information below.**\n\nThe reason is: while developing, I use a set of snippets that insert (), [] and {} and other characters that are inconvenient to type if using a Spanish keyboard layout. By using these snippets, I can code much faster, but the resulting code needs further post-processing. If dartfmt could do that for me, it'd be pretty awesome.\n"}}