How do I make this a compile-time error?
# android
s
How do I make this a compile-time error?
c
Find the check name, go to preferences - > inspections and change the severity for this check to error.
s
That only makes it show red in my IDE. I need this to fail the build on CI and on everyone else’s machine.
c
Then set abortOnError = true, inside lintOptions at your build file
I forgot to mention that in addition to the above, you have to place a
lint.xml
file in your project, where you specify the check that you want to have error severity. Then configure lintOptions to use that file for its configuration.
s
This isn’t a lint check though, it’s a Kotlin compiler warning
c
Oh I'm sorry then.
s
No worries, thanks for your help. I just really want to figure this out, as we’ve already seen a crash from something that never should have compiled 😞