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:
Adrian Gallagher
2022-08-17 11:37:22 +10:00
committed by GitHub
parent 0c9ad9eaa3
commit 68588560e3
85 changed files with 389 additions and 246 deletions

View File

@@ -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},

View File

@@ -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

View File

@@ -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,