{"action":"created","issue":{"url":"https://api.github.com/repos/HaxeCheckstyle/haxe-checkstyle/issues/240","repository_url":"https://api.github.com/repos/HaxeCheckstyle/haxe-checkstyle","labels_url":"https://api.github.com/repos/HaxeCheckstyle/haxe-checkstyle/issues/240/labels{/name}","comments_url":"https://api.github.com/repos/HaxeCheckstyle/haxe-checkstyle/issues/240/comments","events_url":"https://api.github.com/repos/HaxeCheckstyle/haxe-checkstyle/issues/240/events","html_url":"https://github.com/HaxeCheckstyle/haxe-checkstyle/issues/240","id":147454737,"number":240,"title":"Check to detect missing new line at end of file","user":{"login":"fantoine","id":1149128,"avatar_url":"https://avatars.githubusercontent.com/u/1149128?v=3","gravatar_id":"","url":"https://api.github.com/users/fantoine","html_url":"https://github.com/fantoine","followers_url":"https://api.github.com/users/fantoine/followers","following_url":"https://api.github.com/users/fantoine/following{/other_user}","gists_url":"https://api.github.com/users/fantoine/gists{/gist_id}","starred_url":"https://api.github.com/users/fantoine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fantoine/subscriptions","organizations_url":"https://api.github.com/users/fantoine/orgs","repos_url":"https://api.github.com/users/fantoine/repos","events_url":"https://api.github.com/users/fantoine/events{/privacy}","received_events_url":"https://api.github.com/users/fantoine/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/HaxeCheckstyle/haxe-checkstyle/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-11T14:53:23Z","updated_at":"2016-04-11T16:02:31Z","closed_at":null,"body":"It's *generally* a good practice to enforce a newline character at end of files.\r\n\r\nMaybe it could deserve a check for this?"},"comment":{"url":"https://api.github.com/repos/HaxeCheckstyle/haxe-checkstyle/issues/comments/208424915","html_url":"https://github.com/HaxeCheckstyle/haxe-checkstyle/issues/240#issuecomment-208424915","issue_url":"https://api.github.com/repos/HaxeCheckstyle/haxe-checkstyle/issues/240","id":208424915,"user":{"login":"AlexHaxe","id":7204032,"avatar_url":"https://avatars.githubusercontent.com/u/7204032?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexHaxe","html_url":"https://github.com/AlexHaxe","followers_url":"https://api.github.com/users/AlexHaxe/followers","following_url":"https://api.github.com/users/AlexHaxe/following{/other_user}","gists_url":"https://api.github.com/users/AlexHaxe/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexHaxe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexHaxe/subscriptions","organizations_url":"https://api.github.com/users/AlexHaxe/orgs","repos_url":"https://api.github.com/users/AlexHaxe/repos","events_url":"https://api.github.com/users/AlexHaxe/events{/privacy}","received_events_url":"https://api.github.com/users/AlexHaxe/received_events","type":"User","site_admin":false},"created_at":"2016-04-11T16:02:31Z","updated_at":"2016-04-11T16:02:31Z","body":"How about three different modes\r\n- last line is empty and has a NL (== double NL) \r\n- last line is not empty and has a NL (== insert_final_newline = true)\r\n- last line is not empty and has no NL (== insert_final_newline = false)\r\n"}}