Add custom .golangci.yaml config.
Build & Test / Main (push) Successful in 1m0s Details
Release / Release (push) Successful in 1m35s Details

This commit is contained in:
Sam Fredrickson 2024-03-29 19:29:29 -07:00
parent f67323c5f4
commit 5c22d85e2b
2 changed files with 16 additions and 1 deletions

15
.golangci.yaml Normal file
View File

@ -0,0 +1,15 @@
linters:
disable-all: true
enable:
- errcheck
- godot
- goimports
- gosimple
- govet
- ineffassign
- nilerr
- nilnil
- staticcheck
- typecheck
- unused
- usestdlibvars

View File

@ -171,7 +171,7 @@ func (cb ConstantBase) GetStartingPrice() float64 {
return cb.StartingPrice
}
// RelativeBase is a base that is relative, e.g. "90 days ago."
// RelativeBase is a base that is relative, e.g. "90 days ago".
type RelativeBase struct {
Name string `koanf:"name"`
Offset time.Duration `koanf:"offset"`