errorprone

Disable error prone in bazel

拜拜、爱过 提交于 2019-12-12 18:43:08
问题 I have a project with a lot of code. Some of this code doesn't pass error-prone inspections turned on by default in Bazel. I want to disable error-prone in bazel. Is it possible to do it without adding a command line argument via the WORKSPACE file? P.S. Disabling via command line works well 回答1: As Xiao Liang mentioned, you can add --javacopt="-XepDisableAllChecks" to your bazelrc , or you can also add it to tools/bazel.rc inside your workspace so that it can be checked in with the source