I have a project with a valid Gradle build script and a valid Gradle settings script.
But if I invoke the ktlint 0.20.0-beta-4 formatter on them, I get for the settings script
This file can not be parsed by ktlint. Please resolve all (compilation) errors first. Error: 1:1 Expecting a top level declaration
and for the build script
This file can not be parsed by ktlint. Please resolve all (compilation) errors first. Error: 11:1 Expecting a top level declaration
which for both is the first code line, in the build script there are imports.
I have a project with a valid Gradle build script and a valid Gradle settings script. But if I invoke the ktlint 0.20.0-beta-4 formatter on them, I get for the settings script
and for the build script
which for both is the first code line, in the build script there are imports.