{"action":"created","issue":{"url":"https://api.github.com/repos/rodjek/puppet-lint/issues/223","labels_url":"https://api.github.com/repos/rodjek/puppet-lint/issues/223/labels{/name}","comments_url":"https://api.github.com/repos/rodjek/puppet-lint/issues/223/comments","events_url":"https://api.github.com/repos/rodjek/puppet-lint/issues/223/events","html_url":"https://github.com/rodjek/puppet-lint/pull/223","id":19439986,"number":223,"title":"Checks for code outside class/define block","user":{"login":"eLobato","id":598891,"avatar_url":"https://avatars.githubusercontent.com/u/598891?v=3","gravatar_id":"","url":"https://api.github.com/users/eLobato","html_url":"https://github.com/eLobato","followers_url":"https://api.github.com/users/eLobato/followers","following_url":"https://api.github.com/users/eLobato/following{/other_user}","gists_url":"https://api.github.com/users/eLobato/gists{/gist_id}","starred_url":"https://api.github.com/users/eLobato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eLobato/subscriptions","organizations_url":"https://api.github.com/users/eLobato/orgs","repos_url":"https://api.github.com/users/eLobato/repos","events_url":"https://api.github.com/users/eLobato/events{/privacy}","received_events_url":"https://api.github.com/users/eLobato/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rodjek/puppet-lint/labels/new%20check","name":"new check","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2013-09-13T10:07:03Z","updated_at":"2015-02-02T14:12:04Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rodjek/puppet-lint/pulls/223","html_url":"https://github.com/rodjek/puppet-lint/pull/223","diff_url":"https://github.com/rodjek/puppet-lint/pull/223.diff","patch_url":"https://github.com/rodjek/puppet-lint/pull/223.patch"},"body":"Code outside class or define blocks should go in different files\r\naccording to the puppet guide.\r\nhttp://docs.puppetlabs.com/guides/style_guide.html#separate-files\r\n\r\nNot only that but it can also trigger nasty bugs as mentioned in issue\r\nhttps://github.com/rodjek/puppet-lint/issues/220"},"comment":{"url":"https://api.github.com/repos/rodjek/puppet-lint/issues/comments/72463318","html_url":"https://github.com/rodjek/puppet-lint/pull/223#issuecomment-72463318","issue_url":"https://api.github.com/repos/rodjek/puppet-lint/issues/223","id":72463318,"user":{"login":"raphink","id":650430,"avatar_url":"https://avatars.githubusercontent.com/u/650430?v=3","gravatar_id":"","url":"https://api.github.com/users/raphink","html_url":"https://github.com/raphink","followers_url":"https://api.github.com/users/raphink/followers","following_url":"https://api.github.com/users/raphink/following{/other_user}","gists_url":"https://api.github.com/users/raphink/gists{/gist_id}","starred_url":"https://api.github.com/users/raphink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raphink/subscriptions","organizations_url":"https://api.github.com/users/raphink/orgs","repos_url":"https://api.github.com/users/raphink/repos","events_url":"https://api.github.com/users/raphink/events{/privacy}","received_events_url":"https://api.github.com/users/raphink/received_events","type":"User","site_admin":false},"created_at":"2015-02-02T14:12:04Z","updated_at":"2015-02-02T14:12:04Z","body":"You could turn this into a plugin. See https://rubygems.org/search?utf8=%E2%9C%93&query=puppet-lint"}}