exportloopref icon indicating copy to clipboard operation
exportloopref copied to clipboard

Results 6 exportloopref issues
Sort by recently updated
recently updated
newest added

exportloopref complains about something like this, even though it is valid: ``` var result *int haystack := []int{1, 2} for _, hay := range haystack { if true { result...

help wanted

Linter crashed while building in Jenkins. `[2021-03-31T16:06:22.161Z] + golangci-lint run -c ./golangci.yaml [2021-03-31T16:06:48.663Z] level=warning msg="[linters context] Panic: exportloopref: package \"loggingapi\" (isInitialPkg: true, needAnalyzeSource: true): runtime error: invalid memory address or...

question

Hey, what do you think about the mode that forbid capturing loop variables to prevent errors like this: ```go package main import ( "fmt" ) func main() { x :=...

In the following code, no linter error is raised. Is this case catchable? ``` var results []Result for _, v := range iteratee { r := Result{v: &v} results =...

help wanted

``` package main import "fmt" type Transaction struct { ID int Status int } func main() { var txns []Transaction for i := 0; i < 10; i++ { txns...