mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-13 15:09:42 +00:00
CI: Bump go version, linters and fix minor issues (#1010)
* Bump golang, golangci-lint versions and fix issues * Add -fno-stack-protector * Fix AppVeyor golangci-lint ver * Nitters * Nitters round 2
This commit is contained in:
@@ -23,7 +23,7 @@ var (
|
||||
|
||||
func TestMain(m *testing.M) {
|
||||
for x := 0; x < 100; x++ {
|
||||
v := rand.Float64() // nolint:gosec // no need to import crypo/rand for testing
|
||||
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},
|
||||
|
||||
@@ -25,7 +25,7 @@ const (
|
||||
// Wrapper instance of GCT to use for modules
|
||||
var Wrapper GCTExchange
|
||||
|
||||
// Exchange interface requirements
|
||||
// GCTExchange interface requirements
|
||||
type GCTExchange interface {
|
||||
Exchanges(enabledOnly bool) []string
|
||||
IsEnabled(exch string) bool
|
||||
|
||||
@@ -263,7 +263,7 @@ func (w Wrapper) OHLCV(ctx context.Context, exch string, p currency.Pair, a asse
|
||||
})
|
||||
|
||||
for x := 1; x < 200; x++ {
|
||||
r := validatorLow + rand.Float64()*(validatorHigh-validatorLow) // nolint:gosec // no need to import crypo/rand
|
||||
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