github-vet / github-vet/rangeloop-pointer-findings
applike/gosoline: pkg/cloud/stream.go; 16 LoC
- Dominant language
- No language data
- Stars
- 0
- Forks
- 0
- PR merge metrics
- PR metrics pending
Description
Found a possible issue in [applike/gosoline](https://www.github.com/applike/gosoline) at [pkg/cloud/stream.go](https://github.com/applike/gosoline/blob/1af4638341acb13f2584ff4123197c0d4f625341/pkg/cloud/stream.go#L106-L121)
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 stream was used in a composite literal at line 109
[Click here to see the code in its original context.](https://github.com/applike/gosoline/blob/1af4638341acb13f2584ff4123197c0d4f625341/pkg/cloud/stream.go#L106-L121)
Click here to show the 16 line(s) of Go which triggered the analyzer.
```go
for _, stream := range input.Streams {
input := kinesis.UpdateShardCountInput{
ScalingType: aws.String(kinesis.ScalingTypeUniformScaling),
StreamName: &stream,
TargetShardCount: aws.Int64(int64(input.Count)),
}
out, err := sc.kinesisClient.UpdateShardCount(&input)
if err != nil {
sc.logger.Warn(err)
continue
}
updates = append(updates, out)
}
```
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: 1af4638341acb13f2584ff4123197c0d4f625341
Contributor guide
No contributing guide indexed for this repository
Research direction
Read pkg/cloud/stream.go at lines 106-121 and inspect the linked commit context. Determine whether the range variable reference represents a bug, mitigated behavior, or desirable behavior using the linked classification guidance. Done means leaving the corresponding reaction on the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cloud
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100