> Additional lint checks in CI
> Bazel v3 doesn’t include the new version of errorprone, which would allow enabling more static analysis to the build and validation process of incoming Gerrit changes. David Pursehouse will continue the research with David Ostrovsky for understanding how to use a more recent version of errorprone and how to include in our Bazel build.
Done.
PR in Bazel to upgrade Error Prone version to 2.3.4 is here: [1].
Custom release for java_tools that includes this upgrade is here: [2].
Note, though, that I have only built it on Linux, but could conduct a release
for Mac Os X as well.
The new version of EP broke rules_closure: [3] and rules_kotlin: [4], and
that was actually the reason, why last EP upgrade was reverted in Bazel.
The revert was unnecessary, though, because it was a missing dependency
in rules_kotlin itself, that I've fixed here: [5].
Here is the series that brought the upgrade to Gerrit: [6] and here is the
similar series to bump EP and activate all new and shiny bug pattern
checks in JGit project: [7].
First run of the enhanced build reveals, that both projects: Gerrit and
JGit violate Google Java Style Guide and don't provide Javadoc code
block summaries: [9],[10].
I wrote these issues for Gerrit: [11] and JGit: [12] projects to fix new
issues flagged by Error Prone 2.3.4.