{"action":"closed","issue":{"url":"https://api.github.com/repos/dart-lang/dart_style/issues/469","labels_url":"https://api.github.com/repos/dart-lang/dart_style/issues/469/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/dart_style/issues/469/comments","events_url":"https://api.github.com/repos/dart-lang/dart_style/issues/469/events","html_url":"https://github.com/dart-lang/dart_style/issues/469","id":118508851,"number":469,"title":"splitsOnInnerRules is disabled too early before a collection predeced by a line comment","user":{"login":"munificent","id":46275,"avatar_url":"https://avatars.githubusercontent.com/u/46275?v=3","gravatar_id":"","url":"https://api.github.com/users/munificent","html_url":"https://github.com/munificent","followers_url":"https://api.github.com/users/munificent/followers","following_url":"https://api.github.com/users/munificent/following{/other_user}","gists_url":"https://api.github.com/users/munificent/gists{/gist_id}","starred_url":"https://api.github.com/users/munificent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/munificent/subscriptions","organizations_url":"https://api.github.com/users/munificent/orgs","repos_url":"https://api.github.com/users/munificent/repos","events_url":"https://api.github.com/users/munificent/events{/privacy}","received_events_url":"https://api.github.com/users/munificent/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dart-lang/dart_style/labels/bad","name":"bad","color":"2aa198"},{"url":"https://api.github.com/repos/dart-lang/dart_style/labels/difficult","name":"difficult","color":"268bd2"},{"url":"https://api.github.com/repos/dart-lang/dart_style/labels/rare","name":"rare","color":"6c71c4"},{"url":"https://api.github.com/repos/dart-lang/dart_style/labels/safe","name":"safe","color":"d33682"}],"state":"closed","locked":false,"assignee":{"login":"munificent","id":46275,"avatar_url":"https://avatars.githubusercontent.com/u/46275?v=3","gravatar_id":"","url":"https://api.github.com/users/munificent","html_url":"https://github.com/munificent","followers_url":"https://api.github.com/users/munificent/followers","following_url":"https://api.github.com/users/munificent/following{/other_user}","gists_url":"https://api.github.com/users/munificent/gists{/gist_id}","starred_url":"https://api.github.com/users/munificent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/munificent/subscriptions","organizations_url":"https://api.github.com/users/munificent/orgs","repos_url":"https://api.github.com/users/munificent/repos","events_url":"https://api.github.com/users/munificent/events{/privacy}","received_events_url":"https://api.github.com/users/munificent/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2015-11-24T00:59:35Z","updated_at":"2015-11-24T17:33:01Z","closed_at":"2015-11-24T17:33:01Z","body":"In argument_list_visitor.dart, in `_visitArgument()`, we call `.beforeCollection()` to disable the collection's body rule from forcing the argument list to split.\r\n\r\nSince we haven't written any line comment following the preceding `,`, this disables it a bit too early. Given (and a 40-column page):\r\n\r\n```dart\r\nfunction(argument, // comment\r\n[[element]]);\r\n```\r\n\r\nThis produces:\r\n\r\n```dart\r\nfunction(argument, // comment\r\n    [\r\n  [element]\r\n]);\r\n```\r\n\r\nInstead of the correct:\r\n\r\n```dart\r\nfunction(argument, // comment\r\n    [\r\n      [element]\r\n    ]);\r\n```\r\n"}}