wpt.fyi icon indicating copy to clipboard operation
wpt.fyi copied to clipboard

Fix gochecknoglobals lint issues (golangci-lint)

Open LeonardYam opened this issue 1 year ago • 0 comments

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

LeonardYam avatar May 16 '23 06:05 LeonardYam