{"action":"opened","issue":{"url":"https://api.github.com/repos/Foodcritic/foodcritic/issues/757","repository_url":"https://api.github.com/repos/Foodcritic/foodcritic","labels_url":"https://api.github.com/repos/Foodcritic/foodcritic/issues/757/labels{/name}","comments_url":"https://api.github.com/repos/Foodcritic/foodcritic/issues/757/comments","events_url":"https://api.github.com/repos/Foodcritic/foodcritic/issues/757/events","html_url":"https://github.com/Foodcritic/foodcritic/issues/757","id":322410973,"number":757,"title":"Detect if 'lazy' evaluation is passed do ... end instead of { ... }","user":{"login":"NaomiReeves","id":10870770,"avatar_url":"https://avatars0.githubusercontent.com/u/10870770?v=4","gravatar_id":"","url":"https://api.github.com/users/NaomiReeves","html_url":"https://github.com/NaomiReeves","followers_url":"https://api.github.com/users/NaomiReeves/followers","following_url":"https://api.github.com/users/NaomiReeves/following{/other_user}","gists_url":"https://api.github.com/users/NaomiReeves/gists{/gist_id}","starred_url":"https://api.github.com/users/NaomiReeves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NaomiReeves/subscriptions","organizations_url":"https://api.github.com/users/NaomiReeves/orgs","repos_url":"https://api.github.com/users/NaomiReeves/repos","events_url":"https://api.github.com/users/NaomiReeves/events{/privacy}","received_events_url":"https://api.github.com/users/NaomiReeves/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-11T19:37:14Z","updated_at":"2018-05-11T19:37:14Z","closed_at":null,"author_association":"NONE","body":"We should alert users if they have given lazy `do ... end` instead of using `{ ... }`. Using a `do .. end` will result in a chef run failing with: `ArgumentError: tried to create Proc object without a block` which seems to contradict normal block syntax, unless you are familiar with Ruby precedence.\r\n\r\nfrom [Ruby](https://ruby-doc.org/core-2.4.0/doc/syntax/precedence_rdoc.html):\r\n> `{ ... }` blocks have priority below all listed operations, but `do ... end` blocks have lower priority.\r\n\r\nReported originally in https://tickets.opscode.com/browse/CHEF-4595"}}
{"actor":{"display_login":"NaomiReeves"}}