{"action":"created","issue":{"url":"https://api.github.com/repos/shyiko/ktlint/issues/177","repository_url":"https://api.github.com/repos/shyiko/ktlint","labels_url":"https://api.github.com/repos/shyiko/ktlint/issues/177/labels{/name}","comments_url":"https://api.github.com/repos/shyiko/ktlint/issues/177/comments","events_url":"https://api.github.com/repos/shyiko/ktlint/issues/177/events","html_url":"https://github.com/shyiko/ktlint/issues/177","id":306654658,"number":177,"title":"Fail to specify reporter output that contains spaces in path","user":{"login":"Tapchicoma","id":1595262,"avatar_url":"https://avatars0.githubusercontent.com/u/1595262?v=4","gravatar_id":"","url":"https://api.github.com/users/Tapchicoma","html_url":"https://github.com/Tapchicoma","followers_url":"https://api.github.com/users/Tapchicoma/followers","following_url":"https://api.github.com/users/Tapchicoma/following{/other_user}","gists_url":"https://api.github.com/users/Tapchicoma/gists{/gist_id}","starred_url":"https://api.github.com/users/Tapchicoma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tapchicoma/subscriptions","organizations_url":"https://api.github.com/users/Tapchicoma/orgs","repos_url":"https://api.github.com/users/Tapchicoma/repos","events_url":"https://api.github.com/users/Tapchicoma/events{/privacy}","received_events_url":"https://api.github.com/users/Tapchicoma/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-19T22:04:20Z","updated_at":"2018-03-21T00:58:31Z","closed_at":"2018-03-21T00:44:47Z","author_association":"NONE","body":"It was requested in [ktlint-gradle](https://github.com/JLLeitschuh/ktlint-gradle) plugin to support reporters output path that contains spaces.\r\n\r\nI've tried following approaches to check if it supported on Ktlint side:\r\n```bash\r\n$ ~/tmp/ktlint --debug --reporter=plain,output=\"/home/user/some dir with spaces/samples/android-app/build/reports/ktlint/ktlint-debugAndroidTest.txt\" \"src/**/*.kt\"\r\nError: \"--reporter=plain,output=/home/user/some dir with spaces/samples/android-app/build/reports/ktlint/ktlint-debugAndroidTest.txt\" is not a valid option\r\n```\r\n\r\n```bash\r\n$ ~/tmp/ktlint --debug --reporter=plain,output=/home/user/some dir with spaces/samples/android-app/build/reports/ktlint/ktlint-debugAndroidTest.txt \"src/**/*.kt\"\r\n[DEBUG] Discovered ruleset \"standard\"\r\n[DEBUG] Discovered reporter \"plain\"\r\n[DEBUG] Discovered reporter \"json\"\r\n[DEBUG] Discovered reporter \"checkstyle\"\r\n[DEBUG] Initializing \"plain\" reporter with {verbose=false, color=false}, output=/home/user/some\r\n[DEBUG] Checking /home/user/some dir with spaces/samples/android-app/src/androidTest/java/org/jlleitschuh/gradle/ktlint/android/ExampleInstrumentedTest.kt\r\n[DEBUG] Checking /home/user/some dir with spaces/samples/android-app/src/main/java/org/jlleitschuh/gradle/ktlint/android/ItemDetailActivity.kt\r\n[DEBUG] Checking /home/user/some dir with spaces/samples/android-app/src/main/java/org/jlleitschuh/gradle/ktlint/android/ItemDetailFragment.kt\r\n[DEBUG] Checking /home/user/some dir with spaces/samples/android-app/src/main/java/org/jlleitschuh/gradle/ktlint/android/ItemListActivity.kt\r\n[DEBUG] Checking /home/user/some dir with spaces/samples/android-app/src/main/java/org/jlleitschuh/gradle/ktlint/android/dummy/DummyContent.kt\r\n[DEBUG] Checking /home/user/some dir with spaces/samples/android-app/src/test/java/org/jlleitschuh/gradle/ktlint/android/ExampleUnitTest.kt\r\n[DEBUG] 983ms / 6 file(s) / 0 error(s)\r\n```\r\n\r\n```bash\r\n$  ~/tmp/ktlint --reporter=plain,output=/home/user/some\\ dir\\ with\\ spaces/samples/android-app/build/reports/ktlint/ktlint-debugAndroidTest.txt \"src/**/*.kt\"         \r\nError: \"--reporter=plain,output=/home/user/some dir with spaces/samples/android-app/build/reports/ktlint/ktlint-debugAndroidTest.txt\" is not a valid option\r\n```"},"comment":{"url":"https://api.github.com/repos/shyiko/ktlint/issues/comments/374807026","html_url":"https://github.com/shyiko/ktlint/issues/177#issuecomment-374807026","issue_url":"https://api.github.com/repos/shyiko/ktlint/issues/177","id":374807026,"user":{"login":"shyiko","id":370176,"avatar_url":"https://avatars1.githubusercontent.com/u/370176?v=4","gravatar_id":"","url":"https://api.github.com/users/shyiko","html_url":"https://github.com/shyiko","followers_url":"https://api.github.com/users/shyiko/followers","following_url":"https://api.github.com/users/shyiko/following{/other_user}","gists_url":"https://api.github.com/users/shyiko/gists{/gist_id}","starred_url":"https://api.github.com/users/shyiko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shyiko/subscriptions","organizations_url":"https://api.github.com/users/shyiko/orgs","repos_url":"https://api.github.com/users/shyiko/repos","events_url":"https://api.github.com/users/shyiko/events{/privacy}","received_events_url":"https://api.github.com/users/shyiko/received_events","type":"User","site_admin":false},"created_at":"2018-03-21T00:58:31Z","updated_at":"2018-03-21T00:58:31Z","author_association":"OWNER","body":"Fixed in [0.20.0](https://github.com/shyiko/ktlint/releases/tag/0.20.0)."}}
{"actor":{"display_login":"shyiko"}}