You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It was requested in ktlint-gradle plugin to support reporters output path that contains spaces.
I've tried following approaches to check if it supported on Ktlint side:
$ ~/tmp/ktlint --debug --reporter=plain,output="/home/user/some dir with spaces/samples/android-app/build/reports/ktlint/ktlint-debugAndroidTest.txt""src/**/*.kt"
Error: "--reporter=plain,output=/home/user/some dir with spaces/samples/android-app/build/reports/ktlint/ktlint-debugAndroidTest.txt" is not a valid option
$ ~/tmp/ktlint --debug --reporter=plain,output=/home/user/some dir with spaces/samples/android-app/build/reports/ktlint/ktlint-debugAndroidTest.txt "src/**/*.kt"
[DEBUG] Discovered ruleset "standard"
[DEBUG] Discovered reporter "plain"
[DEBUG] Discovered reporter "json"
[DEBUG] Discovered reporter "checkstyle"
[DEBUG] Initializing "plain" reporter with {verbose=false, color=false}, output=/home/user/some
[DEBUG] Checking /home/user/some dir with spaces/samples/android-app/src/androidTest/java/org/jlleitschuh/gradle/ktlint/android/ExampleInstrumentedTest.kt
[DEBUG] Checking /home/user/some dir with spaces/samples/android-app/src/main/java/org/jlleitschuh/gradle/ktlint/android/ItemDetailActivity.kt
[DEBUG] Checking /home/user/some dir with spaces/samples/android-app/src/main/java/org/jlleitschuh/gradle/ktlint/android/ItemDetailFragment.kt
[DEBUG] Checking /home/user/some dir with spaces/samples/android-app/src/main/java/org/jlleitschuh/gradle/ktlint/android/ItemListActivity.kt
[DEBUG] Checking /home/user/some dir with spaces/samples/android-app/src/main/java/org/jlleitschuh/gradle/ktlint/android/dummy/DummyContent.kt
[DEBUG] Checking /home/user/some dir with spaces/samples/android-app/src/test/java/org/jlleitschuh/gradle/ktlint/android/ExampleUnitTest.kt
[DEBUG] 983ms / 6 file(s) / 0 error(s)
$ ~/tmp/ktlint --reporter=plain,output=/home/user/some\ dir\ with\ spaces/samples/android-app/build/reports/ktlint/ktlint-debugAndroidTest.txt "src/**/*.kt"
Error: "--reporter=plain,output=/home/user/some dir with spaces/samples/android-app/build/reports/ktlint/ktlint-debugAndroidTest.txt" is not a valid option
The text was updated successfully, but these errors were encountered:
$ ~/tmp/ktlint "--reporter=plain,output=/home/user/some dir with spaces/samples/android-app/build/reports/ktlint/ktlint-debugAndroidTest.txt" "src/**/*.kt"
that is, quoting the whole "--reporter=..." argument.
$ ~/tmp/ktlint --debug "--reporter=plain,output=/home/user/some dir with spaces/samples/android-app/build/reports/ktlint/ktlint-debugAndroidTest.txt""src/**/*.kt"
Error: "--reporter=plain,output=/home/user/some dir with spaces/samples/android-app/build/reports/ktlint/ktlint-debugAndroidTest.txt" is not a valid option
It was requested in ktlint-gradle plugin to support reporters output path that contains spaces.
I've tried following approaches to check if it supported on Ktlint side:
The text was updated successfully, but these errors were encountered: