github-vet / github-vet/rangeloop-pointer-findings
cryptix/trakting: frontend/model/trackList.go; 6 LoC
- Dominant language
- No language data
- Stars
- 0
- Forks
- 0
- PR merge metrics
- PR metrics pending
Description
Found a possible issue in [cryptix/trakting](https://www.github.com/cryptix/trakting) at [frontend/model/trackList.go](https://github.com/cryptix/trakting/blob/beeb21347a253124a4b81ed985def815066003c3/frontend/model/trackList.go#L36-L41)
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 track was used in a composite literal at line 39
[Click here to see the code in its original context.](https://github.com/cryptix/trakting/blob/beeb21347a253124a4b81ed985def815066003c3/frontend/model/trackList.go#L36-L41)
Click here to show the 6 line(s) of Go which triggered the analyzer.
```go
for idx, track := range tracks {
m.Tracks[idx] = &Track{
Scope: m.Scope,
Track: &track,
}
}
```
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: beeb21347a253124a4b81ed985def815066003c3
Contributor guide
No contributing guide indexed for this repository
Research direction
Open frontend/model/trackList.go at lines 36-41 and inspect the range loop alongside the analyzer finding. Determine whether the reported reference is a bug, mitigated, or desirable behavior, then leave the corresponding reaction; done means the instance is classified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100