wpt.fyi
wpt.fyi copied to clipboard
Fix gochecknoglobals lint issues (golangci-lint)
gochecknoglobals checks for any global variables in Go code.
Reasoning - Global variables are an input to functions that is not visible in the functions signature, complicate testing, reduces readability and increase the complexity of code.
Any lint issues related to gochecknoglobals can be found by searching for // nolint:gochecknoglobals
.
Related issue: #2984