github-vet / github-vet/rangeloop-pointer-findings

JargoonPard/appGatewaySample: kubernetes/vendor/k8s.io/kubernetes/pkg/apis/extensions/types.generated.go; 5 LoC

Aperta
#12,653 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
fresh tiny
Lingua principale
Nessun dato sulla lingua
Stelle
0
Fork
0
Metriche di merge delle PR
Metriche PR in attesa

Descrizione

Found a possible issue in [JargoonPard/appGatewaySample](https://www.github.com/JargoonPard/appGatewaySample) at [kubernetes/vendor/k8s.io/kubernetes/pkg/apis/extensions/types.generated.go](https://github.com/JargoonPard/appGatewaySample/blob/809b1737d6442418cd84e2f66fa8566a0247ec34/kubernetes/vendor/k8s.io/kubernetes/pkg/apis/extensions/types.generated.go#L15902-L15906)

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 yyv1314 is reassigned at line 15904

[Click here to see the code in its original context.](https://github.com/JargoonPard/appGatewaySample/blob/809b1737d6442418cd84e2f66fa8566a0247ec34/kubernetes/vendor/k8s.io/kubernetes/pkg/apis/extensions/types.generated.go#L15902-L15906)

Click here to show the 5 line(s) of Go which triggered the analyzer.

```go
for _, yyv1314 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy1315 := &yyv1314
yy1315.CodecEncodeSelf(e)
}

```

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: 809b1737d6442418cd84e2f66fa8566a0247ec34

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Inizia con kubernetes/vendor/k8s.io/kubernetes/pkg/apis/extensions/types.generated.go intorno alle righe 15902-15906 e leggi le linee guida collegate sulla classificazione di range-loop-capture. Verifica se il riferimento segnalato a yyv1314 rappresenta un bug, un risultato mitigato o un comportamento desiderabile, quindi lascia la reazione corrispondente; il completamento consiste nell’avere una reazione di classificazione documentata sull’issue.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
go
Ambito
tooling
Tipo di issue
Bug
Difficoltà
1/5
Tempo stimato
Meno di un'ora
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.