ci: add exportloopref linter and upgrade to golangci-lint v1.43.0 (#5281)

`exportloopref` - detects captures of loop variable without
re-assignment

NOTE: There can be false negatives with this linter to avoid being
            overly strict and annoying!

Also upgraded `golangci-lint` to latest (v1.43.0 published 2021-11-03).
This commit is contained in:
Milas Bowman 2022-01-12 07:49:35 -06:00 committed by Nicolas De loof
parent 6fc0b6ff27
commit 4d822676ce
3 changed files with 3 additions and 0 deletions

View File

@ -1,3 +1,4 @@
//go:build !darwin
// +build !darwin
package watch

View File

@ -1,3 +1,4 @@
//go:build !darwin
// +build !darwin
package watch

View File

@ -1,3 +1,4 @@
//go:build windows
// +build windows
package watch