github-vet / github-vet/rangeloop-pointer-findings
waffle-iron/c4go_vl: src/github.com/go-swagger/go-swagger/generator/support.go; 18 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/support.go](https://github.com/waffle-iron/c4go_vl/blob/9a7b73aeb423b03e685045bad173f002a3163433/src/github.com/go-swagger/go-swagger/generator/support.go#L199-L216)
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 was used in a composite literal at line 201
[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/support.go#L199-L216)
Click here to show the 18 line(s) of Go which triggered the analyzer.
```go
for _, op := range opg.Operations {
gen := &opGen{
data: &op,
pkg: opg.Name,
cname: swag.ToGoName(op.Name),
IncludeHandler: a.GenOpts.IncludeHandler,
IncludeParameters: a.GenOpts.IncludeParameters,
IncludeResponses: a.GenOpts.IncludeResponses,
Doc: a.SpecDoc,
Analyzed: a.Analyzed,
Target: filepath.Join(a.Target, a.ServerPackage),
APIPackage: a.APIPackage,
}
if err := gen.Generate(); err != nil {
return err
}
}
```
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.