Skip to content

Find, verify, and analyze leaked credentials

Add lint for exporting loop references (#1232)

Miccah3932486ea99f
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index 350baed68..f96e2e932 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -28,7 +28,7 @@ jobs:
# working-directory: somedir
# Optional: golangci-lint command line arguments.
- args: --enable bodyclose --timeout 10m
+ args: --enable bodyclose --enable exportloopref --timeout 10m
# Optional: if set to true then the action don't cache or restore ~/go/pkg.
# skip-pkg-cache: true