github-vet / github-vet/rangeloop-pointer-findings
waffle-iron/c4go_vl: src/github.com/go-swagger/go-swagger/generator/operation.go; 20 LoC
- Dominant language
- No language data
- Stars
- 0
- Forks
- 0
- PR merge metrics
- PR metrics pending
Description
Found a possible issue in [waffle-iron/c4go_vl](https://www.github.com/waffle-iron/c4go_vl) at [src/github.com/go-swagger/go-swagger/generator/operation.go](https://github.com/waffle-iron/c4go_vl/blob/9a7b73aeb423b03e685045bad173f002a3163433/src/github.com/go-swagger/go-swagger/generator/operation.go#L190-L209)
Below is the message reported by the analyzer for this snippet of code. Beware that the analyzer only reports the first
issue it finds, so please do not limit your consideration to the contents of the below message.
> reference to op is reassigned at line 200
[Click here to see the code in its original context.](https://github.com/waffle-iron/c4go_vl/blob/9a7b73aeb423b03e685045bad173f002a3163433/src/github.com/go-swagger/go-swagger/generator/operation.go#L190-L209)
Click here to show the 20 line(s) of Go which triggered the analyzer.
```go
for _, op := range operations {
if o.DumpData {
bb, _ := json.MarshalIndent(swag.ToDynamicJSON(op), "", " ")
fmt.Fprintln(os.Stdout, string(bb))
continue
}
og := new(opGen)
og.IncludeHandler = o.IncludeHandler
og.IncludeParameters = o.IncludeParameters
og.IncludeResponses = o.IncludeResponses
og.data = &op
og.pkg = op.Package
og.cname = swag.ToGoName(op.Name)
og.Doc = o.Doc
og.Analyzed = o.Analyzed
og.Target = o.Target
og.APIPackage = o.APIPackage
og.WithContext = o.WithContext
return og.Generate()
}
```
Leave a reaction on this issue to contribute to the project by classifying this instance as a **Bug** :-1:, **Mitigated** :+1:, or **Desirable Behavior** :rocket:
See the descriptions of the classifications [here](https://github.com/github-vet/rangeclosure-findings#how-can-i-help) for more information.
commit ID: 9a7b73aeb423b03e685045bad173f002a3163433
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.