mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-18 23:16:49 +00:00
Bump golangci-lint, Docker and Go CI versions (#564)
* Bump golangci-lint and Go CI versions * Bump golangci-lint version * Address nitterinos
This commit is contained in:
@@ -23,7 +23,7 @@ var (
|
||||
|
||||
func TestMain(m *testing.M) {
|
||||
for x := 0; x < 100; x++ {
|
||||
v := rand.Float64()
|
||||
v := rand.Float64() // nolint:gosec // no need to import crypo/rand for testing
|
||||
candle := &objects.Array{}
|
||||
candle.Value = append(candle.Value, &objects.Time{Value: time.Now()},
|
||||
&objects.Float{Value: v},
|
||||
|
||||
@@ -249,7 +249,7 @@ func (w Wrapper) OHLCV(exch string, p currency.Pair, a asset.Item, start, end ti
|
||||
})
|
||||
|
||||
for x := 1; x < 200; x++ {
|
||||
r := validatorLow + rand.Float64()*(validatorHigh-validatorLow)
|
||||
r := validatorLow + rand.Float64()*(validatorHigh-validatorLow) // nolint:gosec // no need to import crypo/rand
|
||||
candle := kline.Candle{
|
||||
Time: candles[x-1].Time.Add(-i.Duration()),
|
||||
Open: r,
|
||||
|
||||
Reference in New Issue
Block a user