api: Added missing entry in LINTER_CODES dict.
The LINTER_CODES dict maps linter names to corresponding codes for
protos. It is currently missing an entry for golint, causing an error
when the front end of the API calls EmergeWithLinting. This change
adds an entry for golint.
BUG=b:236715258
TEST=ran ./contrib/call_scripts/toolcahin__emerge_with_linting
Change-Id: I181a4a2e37b58c045d92b7a74028af14c554a648
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/chromite/+/3752637
Tested-by: Uwem Wilson <uwemwilson@google.com>
Reviewed-by: Ryan Beltran <ryanbeltran@chromium.org>
Reviewed-by: Alex Klein <saklein@chromium.org>
Commit-Queue: Uwem Wilson <uwemwilson@google.com>
diff --git a/api/controller/toolchain.py b/api/controller/toolchain.py
index 33ec155..58a5636 100644
--- a/api/controller/toolchain.py
+++ b/api/controller/toolchain.py
@@ -323,7 +323,8 @@
LINTER_CODES = {
'clang_tidy': toolchain_pb2.LinterFinding.CLANG_TIDY,
- 'cargo_clippy': toolchain_pb2.LinterFinding.CARGO_CLIPPY
+ 'cargo_clippy': toolchain_pb2.LinterFinding.CARGO_CLIPPY,
+ 'go_lint': toolchain_pb2.LinterFinding.GO_LINT
}