github-vet / github-vet/rangeloop-pointer-findings
TaoSunkist/hi_golang: service/ratingmore/api_robot/vendor/ym_turkey/globals/property.go; 6 LoC
- Dominant language
- No language data
- Stars
- 0
- Forks
- 0
- PR merge metrics
- PR metrics pending
Description
Found a possible issue in [TaoSunkist/hi_golang](https://www.github.com/TaoSunkist/hi_golang) at [service/ratingmore/api_robot/vendor/ym_turkey/globals/property.go](https://github.com/TaoSunkist/hi_golang/blob/a460662c3604ed8bafddd0e30f162e1d61411c5c/service/ratingmore/api_robot/vendor/ym_turkey/globals/property.go#L73-L78)
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 v was used in a composite literal at line 75
[Click here to see the code in its original context.](https://github.com/TaoSunkist/hi_golang/blob/a460662c3604ed8bafddd0e30f162e1d61411c5c/service/ratingmore/api_robot/vendor/ym_turkey/globals/property.go#L73-L78)
Click here to show the 6 line(s) of Go which triggered the analyzer.
```go
for _, v := range s.Cfgs {
if strings.Compare(v.Env, s.Env) == 0 {
RunEnv = &Configure{s.Env, &v}
break
}
}
```
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: a460662c3604ed8bafddd0e30f162e1d61411c5c
Contributor guide
No contributing guide indexed for this repository
Research direction
Inspect service/ratingmore/api_robot/vendor/ym_turkey/globals/property.go at lines 73-78 and review the linked range-loop analyzer context. Read the classification descriptions in the issue, then leave the appropriate reaction identifying the finding as a Bug, Mitigated, or Desirable Behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100