One problem i have ran into , old codebase uses pa...
# android
s
One problem i have ran into , old codebase uses package
in.dummy.android
. Java files compile with
package in.dummy.android
, but Kotlin requires backticks with in keyword: `package
in
.dummy.android`. After adding Spotless (ktlint), I get error
ktlint(standard:package-name) Package name contains a disallowed character
. What’s the best way to handle this ? Any recommendation for large code base ? I tried to find some rules to write in .editorconfig but did not find any .
p
In that case it would be best to disable the rule in the editorconfig. See https://pinterest.github.io/ktlint/latest/rules/standard/#package-name
1
s
will do thanks