{"action":"created","issue":{"url":"https://api.github.com/repos/olafurpg/scalafmt/issues/540","repository_url":"https://api.github.com/repos/olafurpg/scalafmt","labels_url":"https://api.github.com/repos/olafurpg/scalafmt/issues/540/labels{/name}","comments_url":"https://api.github.com/repos/olafurpg/scalafmt/issues/540/comments","events_url":"https://api.github.com/repos/olafurpg/scalafmt/issues/540/events","html_url":"https://github.com/olafurpg/scalafmt/pull/540","id":184593901,"number":540,"title":"cli: Exit with non-zero status if in testing mode.","user":{"login":"siddarth","id":265651,"avatar_url":"https://avatars.githubusercontent.com/u/265651?v=3","gravatar_id":"","url":"https://api.github.com/users/siddarth","html_url":"https://github.com/siddarth","followers_url":"https://api.github.com/users/siddarth/followers","following_url":"https://api.github.com/users/siddarth/following{/other_user}","gists_url":"https://api.github.com/users/siddarth/gists{/gist_id}","starred_url":"https://api.github.com/users/siddarth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/siddarth/subscriptions","organizations_url":"https://api.github.com/users/siddarth/orgs","repos_url":"https://api.github.com/users/siddarth/repos","events_url":"https://api.github.com/users/siddarth/events{/privacy}","received_events_url":"https://api.github.com/users/siddarth/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-21T23:58:51Z","updated_at":"2016-10-23T08:30:02Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/olafurpg/scalafmt/pulls/540","html_url":"https://github.com/olafurpg/scalafmt/pull/540","diff_url":"https://github.com/olafurpg/scalafmt/pull/540.diff","patch_url":"https://github.com/olafurpg/scalafmt/pull/540.patch"},"body":"Fixes https://github.com/olafurpg/scalafmt/issues/349\r\n\r\nDid it the (admittedly lazy) way. Happy to capture all failures and raise them at the end if that's preferred."},"comment":{"url":"https://api.github.com/repos/olafurpg/scalafmt/issues/comments/255575883","html_url":"https://github.com/olafurpg/scalafmt/pull/540#issuecomment-255575883","issue_url":"https://api.github.com/repos/olafurpg/scalafmt/issues/540","id":255575883,"user":{"login":"olafurpg","id":1408093,"avatar_url":"https://avatars.githubusercontent.com/u/1408093?v=3","gravatar_id":"","url":"https://api.github.com/users/olafurpg","html_url":"https://github.com/olafurpg","followers_url":"https://api.github.com/users/olafurpg/followers","following_url":"https://api.github.com/users/olafurpg/following{/other_user}","gists_url":"https://api.github.com/users/olafurpg/gists{/gist_id}","starred_url":"https://api.github.com/users/olafurpg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olafurpg/subscriptions","organizations_url":"https://api.github.com/users/olafurpg/orgs","repos_url":"https://api.github.com/users/olafurpg/repos","events_url":"https://api.github.com/users/olafurpg/events{/privacy}","received_events_url":"https://api.github.com/users/olafurpg/received_events","type":"User","site_admin":false},"created_at":"2016-10-23T08:30:02Z","updated_at":"2016-10-23T08:30:02Z","body":"`--test` is meant for running in CI to throw an error if scalafmt finds a mis-formatted file, #349 was meant for a different scenario.\r\n\r\nThe CLI has gone through a few changes since I opened #349, so I've now added more up-to-date details to the issue description. The issue is still very relevant. It may be more than what you had in mind, but I think it's totally doable and it would greatly improve quality-of-life for users of the CLI. WDYT? :) "}}
{"actor":{"display_login":"olafurpg"}}