I know that with -Werror and -Xfatal-warnings I can make warnings as errors, but is it possible to still see all warnings in the compilation output, but only make a few of them become errors?
I don't think so, with scalac
alone.
You could perhaps add a post-build check to your build scripts which grep the output for warnings about your critical classes and fail the build if any are found?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With