feat: Enable jvm linting flags to assess if there's an issueย #422
Open
Description
As a Block Node developer
I want to enable the jvm linting flags in com.hedera.block.conventions.gradle.kts
So that we can assess whether the observed warnings are actually a concern
- While Working on Configure gradle to build deterministicallyย #408, we observed that adding the following line to the JavaCompile
options
object of the Gradle config lifted the suppression on java module warnings throughout the system. - This ticket would be to re-examine those warnings and evaluate if they should be fixed and the linting options should remain enabled in the project
options.compilerArgs.add("-Xlint:all,-" + deactivatedCompileLintOptions.joinToString(",-"))
Relative location within the file:
options.encoding = "UTF-8"
options.isFork = true // run compiler in separate JVM process (independent of toolchain setup)
options.compilerArgs.add("-implicit:none")
options.compilerArgs.add("-Xlint:all,-" + deactivatedCompileLintOptions.joinToString(",-"))