{"action":"closed","issue":{"url":"https://api.github.com/repos/dart-lang/linter/issues/634","repository_url":"https://api.github.com/repos/dart-lang/linter","labels_url":"https://api.github.com/repos/dart-lang/linter/issues/634/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/linter/issues/634/comments","events_url":"https://api.github.com/repos/dart-lang/linter/issues/634/events","html_url":"https://github.com/dart-lang/linter/issues/634","id":224601817,"number":634,"title":"Rule to prefer foreach calls when only applying a function","user":{"login":"JPaulsen","id":8152167,"avatar_url":"https://avatars0.githubusercontent.com/u/8152167?v=3","gravatar_id":"","url":"https://api.github.com/users/JPaulsen","html_url":"https://github.com/JPaulsen","followers_url":"https://api.github.com/users/JPaulsen/followers","following_url":"https://api.github.com/users/JPaulsen/following{/other_user}","gists_url":"https://api.github.com/users/JPaulsen/gists{/gist_id}","starred_url":"https://api.github.com/users/JPaulsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JPaulsen/subscriptions","organizations_url":"https://api.github.com/users/JPaulsen/orgs","repos_url":"https://api.github.com/users/JPaulsen/repos","events_url":"https://api.github.com/users/JPaulsen/events{/privacy}","received_events_url":"https://api.github.com/users/JPaulsen/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-04-26T21:15:59Z","updated_at":"2017-04-28T23:06:52Z","closed_at":"2017-04-28T23:06:52Z","body":"Code like this:\r\n\r\n```dart\r\nfor (var e in args) {\r\n  list.add(e);\r\n}\r\n```\r\n\r\nShould be this:\r\n\r\n```dart\r\nargs.forEach(list.add);\r\n```"}}
{"actor":{"display_login":"alexeieleusis"}}