From 5c22d85e2b5876c2a5c647e492da94b95500730a Mon Sep 17 00:00:00 2001 From: Sam Fredrickson Date: Fri, 29 Mar 2024 19:29:29 -0700 Subject: [PATCH] Add custom .golangci.yaml config. --- .golangci.yaml | 15 +++++++++++++++ moon/moon.go | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 .golangci.yaml diff --git a/.golangci.yaml b/.golangci.yaml new file mode 100644 index 0000000..80dda2e --- /dev/null +++ b/.golangci.yaml @@ -0,0 +1,15 @@ +linters: + disable-all: true + enable: + - errcheck + - godot + - goimports + - gosimple + - govet + - ineffassign + - nilerr + - nilnil + - staticcheck + - typecheck + - unused + - usestdlibvars diff --git a/moon/moon.go b/moon/moon.go index 68484fb..4a83dca 100644 --- a/moon/moon.go +++ b/moon/moon.go @@ -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"`