Add custom .golangci.yaml config.
This commit is contained in:
parent
f67323c5f4
commit
5c22d85e2b
15
.golangci.yaml
Normal file
15
.golangci.yaml
Normal file
@ -0,0 +1,15 @@
|
||||
linters:
|
||||
disable-all: true
|
||||
enable:
|
||||
- errcheck
|
||||
- godot
|
||||
- goimports
|
||||
- gosimple
|
||||
- govet
|
||||
- ineffassign
|
||||
- nilerr
|
||||
- nilnil
|
||||
- staticcheck
|
||||
- typecheck
|
||||
- unused
|
||||
- usestdlibvars
|
@ -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"`
|
||||
|
Loading…
Reference in New Issue
Block a user