I am building a multi-module app and in each module I have lint settings as follows
android {
...
lintOptions {
quiet true
abortOnError false
warningsAsErrors true
}
...
}
It is tedious to repeat such settings across all modules so I'm looking for a way to write it once and share it in all modules.
I know there is something like lint.xml
but I believe it is not for these configurations.
If it was not part of android
block it can easily create something like lint.gradle
and use apply from
to link to that file from all modules. However since it is within android
, I'm not sure if there is a way to do that?