Following the instruction in https://github.com/pinterest/ktlint, I tried ./ktlint -F app/src/**/*.kt from my Android project root directory. All works and it corre
./ktlint -F app/src/**/*.kt