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.
function call which takes a reference to m at line 350 may start a goroutine
Click here to show the 23 line(s) of Go which triggered the analyzer.
```go
for _, m := range t.Members {
if hasOpenAPITagValue(m.CommentLines, tagValueFalse) {
continue
}
if shouldInlineMembers(&m) {
required, err = g.generateMembers(m.Type, required)
if err != nil {
return required, err
}
continue
}
name := getReferableName(&m)
if name == "" {
continue
}
if !hasOptionalTag(&m) {
required = append(required, name)
}
if err = g.generateProperty(&m, t); err != nil {
glog.Errorf("Error when generating: %v, %v\n", name, m)
return required, 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 for more information.
Found a possible issue in cuishuaigit/k8s-monitor at metrics-server/vendor/k8s.io/kube-openapi/pkg/generators/openapi.go
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.
Click here to see the code in its original context.
Click here to show the 23 line(s) of Go which triggered the analyzer.
```go for _, m := range t.Members { if hasOpenAPITagValue(m.CommentLines, tagValueFalse) { continue } if shouldInlineMembers(&m) { required, err = g.generateMembers(m.Type, required) if err != nil { return required, err } continue } name := getReferableName(&m) if name == "" { continue } if !hasOptionalTag(&m) { required = append(required, name) } if err = g.generateProperty(&m, t); err != nil { glog.Errorf("Error when generating: %v, %v\n", name, m) return required, 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 for more information.
commit ID: bbd463de16ef312d40e912d6482f66e3d6baa1bd