We have configured the linter to ignore our (generated) code directory db like so:
tasks.lintKotlinMain {
exclude("**/db/**")
}
This works fine. However, when running task formatKotlin, the formatter does not respect this setting but formats the code in the db directory.