Explorar el Código

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).
Milas Bowman hace 4 años
padre
commit
4d822676ce
Se han modificado 3 ficheros con 3 adiciones y 0 borrados
  1. 1 0
      pkg/watch/watcher_naive.go
  2. 1 0
      pkg/watch/watcher_naive_test.go
  3. 1 0
      pkg/watch/watcher_windows.go

+ 1 - 0
pkg/watch/watcher_naive.go

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

+ 1 - 0
pkg/watch/watcher_naive_test.go

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

+ 1 - 0
pkg/watch/watcher_windows.go

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